The Messenger of Allah ﷺ said, "While three men were walking together, they were caught in the rain and took shelter in a cave on a mountainside. A boulder rolled down from the mountain and sealed the entrance of the cave, trapping them inside.They said to one another, 'Look back at the righteous deeds you have done for the sake of Allah, and call upon Allah by them. Perhaps He will relieve us of this rock.'One of them said, 'O Allah, I had two elderly parents and small children, and I used to tend my flock to provide for them. When I returned in the evening and milked the animals, I would begin with my parents, giving them to drink before my children. One day, the search for pasture took me far away, and I did not return until late in the evening. I found my parents already asleep. I milked as I usually did and brought the milk, then stood at their heads, unwilling to wake them from their sleep, and unwilling to give my children their share before them, while the children cried out in hunger at my feet. This remained my state and theirs until dawn broke. O Allah, if You know that I did this seeking Your face, then open for us a gap through which we may see the sky.' So Allah opened for them a gap through which they could see the sky.The second said, 'O Allah, I had a cousin whom I loved with the deepest love that any man ever has for a woman. I sought to lie with her, but she refused unless I brought her a hundred Dinar. I worked hard until I had gathered a hundred Dinar, and I brought them to her. When I sat between her legs, she said, 'Abdullah, fear Allah and do not break the seal unlawfully.' So I rose and left her. O Allah, if You know that I did this seeking Your face, then relieve us further.' So He opened for them another gap.The third said, 'O Allah, I once hired a laborer for a measure of rice. When he finished his work, he said, 'Give me my wage.' I offered him his wage, but he refused it and turned away. I kept on cultivating with it until from it I acquired cattle and a herdsman. Then he came to me and said, 'Fear Allah and do not wrong me. Give me my wage.' I said, 'Go to those cattle and their herdsman.' He said, 'Fear Allah and do not mock me.' I said, 'I am not mocking you. Take those cattle and their herdsman.' So he took them and went away. O Allah, if You know that I did this seeking Your face, then relieve us of what remains.' So Allah relieved them completely."
حدثنا سعيد بن أبي مريم حدثنا إسماعيل بن إبراهيم بن عقبة قال أخبرني نافع
عن رسول الله ﷺ قال بينما ثلاثة نفر يتماشون أخذهم المطر فمالوا إلى غار في الجبل فانحطت على فم غارهم صخرة من الجبل فأطبقت عليهم فقال بعضهم لبعض انظروا أعمالا عملتموها لله صالحة فادعوا الله بها لعله يفرجها فقال أحدهم اللهم إنه كان لي والدان شيخان كبيران ولي صبية صغار كنت أرعى عليهم فإذا رحت عليهم فحلبت بدأت بوالدي أسقيهما قبل ولدي وإنه ناء بي الشجر فما أتيت حتى أمسيت فوجدتهما قد ناما فحلبت كما كنت أحلب فجئت بالحلاب فقمت عند رءوسهما أكره أن أوقظهما من نومهما وأكره أن أبدأ بالصبية قبلهما والصبية يتضاغون عند قدمي فلم يزل ذلك دأبي ودأبهم حتى طلع الفجر فإن كنت تعلم أني فعلت ذلك ابتغاء وجهك فافرج لنا فرجة نرى منها السماء ففرج الله لهم فرجة حتى يرون منها السماء وقال الثاني اللهم إنه كانت لي ابنة عم أحبها كأشد ما يحب الرجال النساء فطلبت إليها نفسها فأبت حتى آتيها بمائة دينار فسعيت حتى جمعت مائة دينار فلقيتها بها فلما قعدت بين رجليها قالت يا عبد الله اتق الله ولا تفتح الخاتم فقمت عنها اللهم فإن كنت تعلم أني قد فعلت ذلك ابتغاء وجهك فافرج لنا منها ففرج لهم فرجة وقال الآخر اللهم إني كنت استأجرت أجيرا بفرق أرز فلما قضى عمله قال أعطني حقي فعرضت عليه حقه فتركه ورغب عنه فلم أزل أزرعه حتى جمعت منه بقرا وراعيها فجاءني فقال اتق الله ولا تظلمني وأعطني حقي فقلت اذهب إلى ذلك البقر وراعيها فقال اتق الله ولا تهزأ بي فقلت إني لا أهزأ بك فخذ ذلك البقر وراعيها فأخذه فانطلق بها فإن كنت تعلم أني فعلت ذلك ابتغاء وجهك فافرج ما بقي ففرج الله عنهم