Hadith.1337 - Sama'a ibn Mehran asked Imam Jafar ibn Muhammad Al-Sadiq (as) about a man who encounters a wild beast, and the time for prayer has arrived, but he cannot walk due to fear of the lion.
Imam (as) said: "He should face the lion and perform the prayer, gesturing with his head while standing, even if the lion is not in the direction of the Qibla."