The Prayer of Fear, Pursuit, Encounter, and Competition
Man Lā Yaḥḍuruh al-Faqīh|Volume 1|Book 1|Chapter 63
وَ سَأَلَ عَلِيُّ بْنُ جَعْفَرٍ أَخَاهُ مُوسَى بْنَ جَعْفَرٍ عَلَيْهِمَا اَلسَّلاَمُ: عَنِ اَلرَّجُلِ يَلْقَاهُ اَلسَّبُعُ وَ قَدْ حَضَرَتِ اَلصَّلاَةُ فَلَمْ يَسْتَطِعِ اَلْمَشْيَ مَخَافَةَ اَلسَّبُعِ قَالَ «يَسْتَقْبِلُ اَلْأَسَدَ وَ يُصَلِّي وَ يُومِئُ بِرَأْسِهِ إِيمَاءً وَ هُوَ قَائِمٌ وَ إِنْ كَانَ اَلْأَسَدُ عَلَى غَيْرِ اَلْقِبْلَةِ.
Ali ibn Ja'far asked his brother Imam Musa ibn Jafar Al-Kadhim عليه السلام about a man who encounters a wild beast, and the time for prayer has arrived, but he is unable to walk due to fear of the beast. Imam عليه السلام said: "He should face the lion, perform the prayer, and gesture with his head while standing, even if the lion is not in the direction of the Qibla."
- Ṣaḥīḥ al-Faqīh