Miscarriage

We were pregnant not even a few days ago and just like that the baby was gone... This was so hard for both of us. When is a good time for us to try again? Should I be doing anything to prepare my body?