Whenever I sand prior to stain, I will wet the wood after the last grit I used and after it dries I go back over it again with the same grit. The water will raise little hairs on the wood. Sanding these back down will ensure they will not pop up again when you apply stain. This has always worked for me.