We have something called Salat estikhara. We do this Salat when we have a choice to make and we are not sure what the future holds and we don't know whether such decision would be good for us or not.
According to Bukhari, Volume 2, Book 21, Number 263:
Narrated Jabir bin 'Abdullah :The Prophet (Sallal Laho Alaihi Wasallam) used to teach us the way of doing Istikhara, in all matters as he taught us the Suras of the Quran. He said, "If anyone of you thinks of doing any job he should offer a two Rakat prayer other than the compulsory ones and say (after the prayer):
We do this salat and say a certain prayer asking God that if doing that thing is good for us that Allah would guide us for it, and if not, than we ask Allah to make a distance between us and that thing.
Here is a translation of the prayer:
TRANSLATION: "O Allah! I seek goodness from Your Knowledge and with Your Power (and Might) I seek strength, and I ask from You Your Great Blessings, because You have the Power and I do not have the power. You Know everything and I do not know, and You have knowledge of the unseen. Oh Allah! If in Your Knowledge this action ------------------------------------------------ (which I intend to do) is better for my religion and faith, for my life and end [death], for here [in this world] and the hereafter then make it destined for me and make it easy for me and then add blessings [baraka'] in it, for me. O Allah! In Your Knowledge if this action is bad for me, bad for my religion and faith, for my life and end [death], for here [in this world] and the hereafter then turn it away from me and turn me away from it and whatever is better for me, ordain [destine] that for me and then make me satisfied with it."