Immediately after raising the grain you need to let it dry. Once dry, it must be sanded.
After sanding, you can wait. While it's possible that atmospheric moisture might raise the grain again, if it does your first grain raising wasn't complete. Simply sand it again if it raises.