It is narrated from Sayyiduna Anas (may Allah be pleased with him) that: "Three men set out (on a journey), looking for something (provision or a need) for their families. Suddenly rain overtook them (and they took shelter in a cave). Then a large rock rolled (from above) and fell over the mouth of the cave in such a way that it closed the way completely, and they could not see even a crack in it. Then some of them said: The rock has fallen and the traces (of you outside) have been erased, and now no one except Allah knows your location, so supplicate to Allah by means of those deeds of yours which you consider the most reliable and sincere. One of them said: 'O Allah, You know well that I had (elderly) parents. I used to milk (the animals) for them into their vessel and bring it to them. If I found them asleep, I would remain standing at their heads until they woke up, whenever they woke (and they would drink the milk). I disliked disturbing their sleep and driving it from their eyes. O Allah, if You know that I did this only in hope of Your mercy and in fear of Your punishment, then deliver us from this distress.' So a third of the rock moved away. The second said: 'O Allah, if You know that a woman pleased me greatly (and he had promised to give her some money), then when he had gained power over her, he gave her the full payment and left her honour and person unharmed (out of fear of You alone). O Allah, if You know that I did this deed in hope of Your mercy and in fear of Your punishment, then remove this hardship of ours.' So two-thirds of the rock moved away. The last man said: 'O Allah, You know that I hired a labourer for some work of mine. He came to take his wages while I was in a state of anger, and I rebuked him, so he went away leaving his wages. I kept his money safe and traded with it until a great deal of wealth came from it. Then he came to me asking for his wages, and I gave him all of that wealth, although if I had wished, I would have given him only his original wage. O Allah, if You know that I did this in hope of Your mercy and in fear of Your punishment, then relieve our difficulty.' So the rock moved away completely, and they all walked out of there."
Hadith Referenceمسند أبي يعلى الموصلي / مسند أنس بن مالك / 2937
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده صحيح . » «قال سعيد بن محمد السناري: صحيح» «أخرجه مسند أحمد برقم: 12046، وأخرجه الأحاديث المختارة برقم: 2461، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 7211، مسند ابویعلیٰ ترقیم الاثری: 2930»