Hadith 5189

(حديث مرفوع) حَدَّثَنَا يَحْيَى ، عَنْ سُفْيَانَ ، حَدَّثَنِي عَبْدُ اللَّهِ بْنُ دِينَارٍ ، سَمِعْتُ ابْنَ عُمَرَ ، قَالَ : كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ " يُصَلِّي عَلَى رَاحِلَتِهِ حَيْثُمَا تَوَجَّهَتْ بِهِ " .
It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) used to offer voluntary prayers on his mount, regardless of which direction it was facing.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 5189
Hadith Grading حکم دارالسلام: إسناده صحيح ، خ : 1000 ، م : 700 .