The Messenger of Allah ﷺ said, "Once three men were walking together when rain caught them, so they took shelter in a cave in a mountain. A boulder rolled down from the mountain onto the mouth of their cave and sealed them inside. They said to one another, 'Think of the righteous deeds you have done purely for Allah, and call upon Allah by them, so that perhaps He will relieve us.'One of them said, 'O Allah, I had two elderly parents and small children. I used to tend my flock for their sake. When I came back to them in the evening and milked the animals, I would begin by giving my parents their drink before my children. One day the trees took me far afield, and I did not return until evening had fallen. I found my parents already asleep. I milked as I usually did and brought the milk and stood by their heads, unwilling to wake them from their sleep, and unwilling to begin with the children before them. Meanwhile the little ones were crying out at my feet from hunger. This was my state and theirs until the dawn broke. O Allah, if You know that I did this seeking Your face, then open for us an opening through which we can see the sky.' So Allah opened for them an opening through which they could see the sky.The second said, 'O Allah, I had a cousin whom I loved as deeply as a man can love 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." So I got up and left her. O Allah, if You know that I did this seeking Your face, then relieve us of this distress.' So He opened another opening for them.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 had gathered cattle and a herdsman to tend them. 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 off with them. O Allah, if You know that I did this seeking Your face, then relieve us of what remains.' So Allah relieved them entirely."
قال رسول الله ﷺ قال: بينما ثلاثة نفر يتماشون أخذهم المطر، فمالوا إلى غار في الجبل، فانحطت على فم غارهم صخرة من الجبل فأطبقت عليهم، فقال بعضهم لبعض: انظروا أعمالا عملتموها لله صالحة، فادعوا الله بها لعله يفرجها. فقال أحدهم: اللهم إنه كان لي والدان شيخان كبيران، ولي صبية صغار، كنت أرعى عليهم، فإذا رحت عليهم فحلبت بدأت بوالدي أسقيهما قبل ولدي، وإنه ناء بي الشجر، فما أتيت حتى أمسيت فوجدتهما قد ناما، فحلبت كما كنت أحلب، فجئت بالحلاب فقمت عند رؤوسهما، أكره أن أوقظهما من نومهما، وأكره أن أبدأ بالصبية قبلهما، والصبية يتضاغون عند قدمي، فلم يزل ذلك دأبي ودأبهم حتى طلع الفجر، فإن كنت تعلم أني فعلت ذلك ابتغاء وجهك فافرج لنا فرجة نرى منها السماء. ففرج الله لهم فرجة حتى يرون منها السماء. وقال الثاني: اللهم إنه كانت لي ابنة عم أحبها كأشد ما يحب الرجال النساء، فطلبت إليها نفسها، فأبت حتى آتيها بمائة دينار، فسعيت حتى جمعت مائة دينار فلقيتها بها، فلما قعدت بين رجليها قالت: يا عبد الله اتق الله، ولا تفتح الخاتم، فقمت عنها، اللهم فإن كنت تعلم أني قد فعلت ذلك ابتغاء وجهك فافرج لنا منها. ففرج لهم فرجة. وقال الآخر: اللهم إني كنت استأجرت أجيرا بفرق أرز، فلما قضى عمله قال: أعطني حقي، فعرضت عليه حقه فتركه ورغب عنه، فلم أزل أزرعه حتى جمعت منه بقرا وراعيها، فجاءني فقال: اتق الله ولا تظلمني وأعطني حقي، فقلت: اذهب إلى ذلك البقر وراعيها، فقال: اتق الله ولا تهزأ بي، فقلت: إني لا أهزأ بك، فخذ ذلك البقر وراعيها، فأخذه فانطلق بها، فإن كنت تعلم أني فعلت ذلك ابتغاء وجهك، فافرج ما بقي. ففرج الله عنهم.