Hadith 5406

(حديث مرفوع) حَدَّثَنَا أَبُو سَلَمَةَ ، أَخْبَرَنَا سُلَيْمَانُ ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ ، عَنِ ابْنِ عُمَرَ ، أَنَّهُ كَانَ " يُصَلِّي عَلَى رَاحِلَتِهِ فِي السَّفَرِ حَيْثُمَا تَوَجَّهَتْ بِهِ ، وَذَكَرَ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ يَصْنَعُ ذَلِكَ فِي السَّفَرِ " .
Abdullah bin Dinar (may Allah have mercy on him) says that Sayyiduna Ibn Umar (may Allah be pleased with them both) used to offer voluntary prayers on his mount, regardless of which direction it was facing, and he used to mention that the Prophet (peace and blessings be upon him) also used to do so during travel.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 5406
Hadith Grading حکم دارالسلام: إسناده صحيح ، خ : 1000، م :700.