Hadith 5447

(حديث مرفوع) حَدَّثَنَا عَفَّانُ ، حَدَّثَنَا وُهَيْبٌ ، حَدَّثَنَا عُبَيْدُ اللَّهِ ، عَنْ نَافِعٍ ، عَنِ ابْنِ عُمَرَ ، أَنّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ " يُصَلِّي عَلَى رَاحِلَتِهِ حَيْثُ تَوَجَّهَتْ بِهِ " .
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, facing whichever direction it was facing.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 5447
Hadith Grading حکم دارالسلام: إسناده صحيح ، خ : 1000، م :700.