In the dark well Joseph managed to find a stone ledge to hold onto. Around him was total darkness and an eerie silence. Fearful thoughts entered his mind: what would happen to him? where would he find food? why had his own brothers turned against him? would his father know of his plight? His father's smile flashed before him, recalling the love and affection he had always shown him. Joseph began to pray earnestly, pleading to Allah for salvation. Gradually his fear began to subside. His Creator was testing the young man with a great misfortune in order to infuse in him a spirit of patience and courage. Joseph surrendered himself to the will of his Lord.
Related Quran Ayaaths of this Hadith.
Surah 6 : Ayah 84 Surah 12 : Ayah 96 Surah 12 : Ayah 99 Surah 12 : Ayah 100 Surah 12 : Ayah 102 Surah 12 : Ayah 111"When a person dies, his works end, except for three: ongoing charity, knowledge that is benefited from, and a righteous child who prays for him."
Prophet Mohammed (PBUH)
"The best of what a man leaves behind are three: a righteous child who supplicates for him, ongoing charity the reward of which reaches him, and knowledge that is acted upon after him."
Sunan Ibn Mājah
"Every day two angels come down from Heaven and one of them says, 'O Allah! Compensate every person who spends in Your Cause,' and the other (angel) says, 'O Allah! Destroy every miser.'"
Sahih Bukhari