It is an integral part of the muslim's faith to believe that everything God chooses for him; evil or good, pleasure or affliction, is for the slave's benefit. The Messenger of Allah (pbuh) said: "By Him in Whose Hand is my soul, God does not ordain a decree for a believer but for his good; and this merit is for no one except a believer..." (Sahih Muslim)
The Qur'an gives us the example of the Prophet Yaqub(as)'s (Jacob's) strong trust in God. He had very handsome children. When he sent his children to Egypt; he instructed them to enter Egypt through different gates because he feared evil eye for them. "And he said: 'O my son! Do not enter by one gate, but enter by different gates..." and then he says, "...I cannot avail you against God. I put my trust in Him alone, and all who trust should only trust Him." The Holy Qur'an, Chapter 12, Verse 67
Meaning any precaution will not prevent God's Decision and appointed Decree, but I trust in God that whatever He chooses will be the best.
The Messenger of God, Muhammad (pbuh) explained that the believer should always be satisfied with the Decree of God. He should be pleased and thankful to God when he is granted ease and pleasure of life. Likewise, he should become patient when calamities afflict him. He (pbuh) said: "...If he (the believer ) is granted ease of living, he is thankful; and this is best for him. And if he is afflicted with a hardship, he perseveres; and this is best for him."(Sahih Muslim)
Excerpted from Worldly Difficulties by Shawana.A.Aziz