That would depend on how fresh it is. If the wood is fresh from the factory it will be dripping wet and will take a couple of months before it would be safe to stain. If it feels as dry as dimension lumber you might wait 2-3 weeks if it's not rained on in that time.
A forum community dedicated to professional woodworkers and enthusiasts. Come join the discussion about shop safety, wood, carpentry, lumber, finishing, tools, machinery, woodworking related topics, styles, scales, reviews, accessories, classifieds, and more!