Abdullah bin Umar reported,

I heard the Messenger of Allah ﷺ say, "Three men from among those who came before you set out on a journey until nightfall forced them to seek shelter in a cave."He continued the narration with the same meaning as the report of Nafi from Ibn Umar, except that he said, "One of them said, 'O Allah, I had two elderly parents, and I would never give the evening drink to anyone, neither family nor servants, before them.'"And he said, "She refused me, until a year of hardship struck her. She then came to me, and I gave her one hundred and twenty Dinars."And he said, "I invested his wage until wealth grew abundant from it and multiplied greatly."And he said, "Then they walked out of the cave."

Muslim 6951

Sahih

حدثني محمد بن سهل التميمي وعبد الله بن عبد الرحمن بن بهرام وأبو بكر بن إسحق قال ابن سهل حدثنا و قال الآخران أخبرنا أبو اليمان أخبرنا شعيب عن الزهري أخبرني سالم بن عبد الله أن

عبد الله بن عمر قال

سمعت رسول الله ﷺ يقول انطلق ثلاثة رهط ممن كان قبلكم حتى آواهم المبيت إلى غار واقتص الحديث بمعنى حديث نافع عن ابن عمر غير أنه قال قال رجل منهم اللهم كان لي أبوان شيخان كبيران فكنت لا أغبق قبلهما أهلا ولا مالا وقال فامتنعت مني حتى ألمت بها سنة من السنين فجاءتني فأعطيتها عشرين ومائة دينار وقال فثمرت أجره حتى كثرت منه الأموال فارتعجت وقال فخرجوا من الغار يمشون

مسلم 6951صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Softening of hearts
Chapter
Story of the three companions of the cave and seeking nearness to Allah through righteous deeds
Numbering
Darussalam 6951
Muslim 6951