Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:13188ʿAbdullāh b. Aḥmad b. Ḥanbal from my father > Marwān b. Muʿāwiyah al-Fazārī Sanah Iḥdá And Thamānīn Wamiāʾah > ʿUmar b. Ḥamzah al-ʿUmarī > Sālim b. ʿAbdullāh > Ibn ʿUmar

[Machine] The Messenger of Allah ﷺ said, "Whoever among you is able to be like the companion of the Cave, then let him do so." They said, "O Messenger of Allah, who is the companion of the Cave?" He said, "Three people set out and the sky became cloudy over them. They took shelter in a cave, and then a rock came and blocked the entrance to the cave. They said to each other, 'Indeed, you have fallen into a great matter. So let each of you supplicate to Allah with the best of his deeds, that perhaps Allah will deliver us from this.' Then he mentioned the story of the Cave in detail."  

الطبراني:١٣١٨٨حَدَّثَنَا عَبْدُ اللهِ بْنُ أَحْمَدَ بْنِ حَنْبَلٍ حَدَّثَنِي أَبِي ثنا مَرْوَانُ بْنُ مُعَاوِيَةَ الْفَزَارِيُّ سَنَةَ إِحْدَى وَثَمَانِينَ وَمِائَةٍ أنا عُمَرُ بْنُ حَمْزَةَ الْعُمَرِيُّ ثنا سَالِمُ بْنُ عَبْدِ اللهِ عَنِ ابْنِ عُمَرَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ مَنِ اسْتَطَاعَ مِنْكُمْ أَنْ يَكُونَ مِثْلَ صَاحِبِ فَرْقِ الْأَرُزِّ فَلْيَكُنْ مِثْلَهُ قَالُوا يَا رَسُولَ اللهِ وَمَنْ صَاحِبُ فَرْقِ الْأَرُزِّ؟ قَالَ خَرَجَ ثَلَاثَةٌ فَغَيَّمَتْ عَلَيْهِمُ السَّمَاءُ فَدَخَلُوا غَارًا فَجَاءَتْ صَخْرَةٌ حَتَّى طَبَقَتِ الْبَابَ عَلَيْهِمْ فَعَالَجُوهَا فَلَمْ يَسْتَطِيعُوا فَقَالَ بَعْضُهُمْ لِبَعْضٍ لَقَدْ وَقَعْتُمْ فِي أَمْرٍ عَظِيمٍ فَلْيَدْعُ كُلُّ رَجُلٍ مِنْكُمْ بِأَحْسَنِ مَا عَمِلَ؛ لَعَلَّ اللهَ أَنْ يُنْجِيَنَا مِنْ هَذَا ثُمَّ ذَكَرَ حَدِيثَ الْغَارِ بِطُولِهِ