Narrated ‘Abdullah bin ‘Amir from his father who said:
I saw the Prophet (p.b.u.h) offering the prayer on his mount (Rahila) whatever direction it took.
Related post here.
Narrated Jabir bin ‘Abdullah,
The Prophet used to offer the Nawafil, while riding, facing a direction other than that of the Qibla.
Ibn ‘Umar (while on a journey) used to offer the prayer and the Witr on his mount (Rahila). He said that the Prophet used to do so.
Narrated ‘Abdullah bin Dinar:
On traveling, ‘Abdullah bin ‘Umar used to offer the prayer on his Mount by signs whatever direction it took. ‘Abdullah said that the Prophet used to do so.
Narrated ‘Amir bin Rabi’a,
I saw the Prophet on his Mount praying Nawafil by nodding his head, whatever direction he faced, but Allah’s Apostle never did the same in offering the compulsory prayers. Narrated Salim: At night’Abdullah bin ‘Umar used to offer the prayer on the back of his animal during the journey and never cared about the direction he faced. Ibn ‘Umar said, “Allah’s Apostle used to offer the optional prayer on the back of his Mount facing any direction and also used to pray the Witr on it but never offered the compulsory prayer on it.”
Narrated Jabir bin ‘Abdullah
The Prophet used to pray (the Nawafil) on his Mount facing east and whenever he wanted to offer the compulsory prayer, he used to dismount and face the Qibla.
Narrated Anas bin Sirin:
We went to receive Anas bin Malik when he returned from Sham and met him at a place called ‘Ain-at-Tamr. I saw him praying riding the donkey, with his face to this direction, i.e. to the left of the Qibla. I said to him, “I have seen you offering the prayer in a direction other than that of the Qibla.” He replied, “If I had not seen Allah’s Apostle doing it, I would not have done it.”
Praying in cars, planes, trains or other means of conveyance, where one cannot face the qiblah or pray standing, is not permissible in the case of obligatory prayers unless two conditions are met:
1 – There should be the fear that the time for the obligatory prayer will end before reaching your destination. But if you will reach your destination before the time for prayer is over, you should wait until you get there to pray.
2 – It should not be possible to get off and pray on the ground. If it is possible to do so then you must do that.
If these two conditions are met, then it is permissible to pray in the vehicle. The evidence for it being permissible to pray in this case is the general meaning of the verses in which Allaah says (interpretation of the meaning):
“Allaah burdens not a person beyond his scope”
“So keep your duty to Allaah and fear Him as much as you can”
“and [Allaah] has not laid upon you in religion any hardship”
With regard to supererogatory (naafil) prayers, the matter is more relaxed; it is permissible for the Muslim to pray in the vehicles mentioned no matter what direction they are facing, even if he could get down on the ground at some times, because the Prophet (peace and blessings of Allaah be upon him) used to pray naafil prayers on his mount no matter what direction it was facing. Jaabir narrated that the Prophet (peace and blessings of Allaah be upon him) “used to pray voluntary prayers when he was riding without facing the qiblah.” (Narrated by al-Bukhaari, 1094). But it is better to face the qiblah when starting to pray a naafil prayer, if that is possible when travelling.
[Taken from IslamQA]
Narrated Said bin Yasar:
I was going to Mecca in the company of ‘Abdullah bin ‘Umar and when I apprehended the approaching dawn, I dismounted and offered the Witr prayer and then joined him. ‘Abdullah bin ‘Umar said, “Where have you been?” I replied, “I apprehended the approaching dawn so I dismounted and prayed the Witr prayer.” ‘Abdullah said, “Isn’t it sufficient for you to follow the good example of Allah’s Apostle?” I replied, “Yes, by Allah.” He said, “Allah’s Apostle used to pray Witr on the back of the camel (while on a journey).”
Narrated Ibn ‘Umar:
The Prophet used to offer (Nawafil) prayers on his Rahila (mount) facing its direction by signals, but not the compulsory prayer. He also used to pray Witr on his (mount) Rahila.
1. Prophet (SAW) used to pray witr while traveling. Meaning, even while you’re shortening the prayers in your travel, you still pray the witr prayer.
The majority of scholars (jumhoor ul-‘ulmeaa’) assert that salaat ul-witr (witr prayer) is a sunnah mu’akkada (confirmed sunnah that the Prophet peace be upon him, practiced consistently), and that it is not obligatory. This is based on the hadith (saying) regarding the bedouin who once came to the Prophet asking about Islam, the Prophet answered, “Five prayers within one day-and-night.” The bedouin asked, “Am I obliged to other than those?” The Prophet replied, “Unless you volunteer of your own.” (al-hadith muttafaqun alaih.)
Some scholars have said that qiyaam ul-layl (prayer at the heart of night) and salaat ul-witr are the best of the voluntary prayers (al-nawaafil). Therefore, one should consistently practice them and not neglect them. The Prophet did not neglect the prayers during night nor two rak’ah before al-fajr neither in residence nor in travel (as related in al-sunnah al-sahihah).
2. He (SAW) used to pray witr on the mount (camel). Meaning, you need not get off your car in order to pray witr.
Ibn ‘Umar (may Allaah be pleased with him) said:
“The Prophet (peace and blessings of Allaah be upon him) used to pray voluntary (nafl) prayers when riding on his camel, no matter what direction it was facing, when he came from Makkah to Madeenah.” Then Ibn ‘Umar recited this aayah (interpretation of the meaning): “And to Allaah belong the east and the west, so wherever you turn yourselves or your faces, there is the Face of Allaah (and He is High above, over His Throne)…” [al-Baqarah 2:115]
Ibn ‘Umar said: “It was concerning this that this aayah was revealed.” (Reported by al-Tirmidhi, 2883; he said, this is a saheeh hasan hadeeth)
And it (facing qiblah direction) does not apply to one who is praying a naafil prayer or witr prayer whilst riding on a riding-animal etc., but it is.. mustahabb for him to face the qiblah if he is able to do so when pronouncing the takbeer of ihraam (at the beginning of the prayer), then he may face whatever direction he is facing.
*The awkward moment when you can’t seem to make your keyboard type English from left to right* :/