Hadith 13109

(حديث مرفوع) حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ ، قَالَ : أَخْبَرَنَا رِبْعِيُّ بْنُ الْجَارُودِ بْنِ أَبِي سَبْرَةَ التَّمِيمِيُّ ، قَالَ : حَدَّثَنِي عَمْرُو بْنُ أَبِي الْحَجَّاجِ ، عَنِ الْجَارُودِ بْنِ أَبِي سَبْرَةَ ، عَنْ أَنَسِ بْنِ مَالِكٍ ، قَالَ : كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا أَرَادَ أَنْ يُصَلِّيَ عَلَى رَاحِلَتِهِ تَطَوُّعًا اسْتَقْبَلَ الْقِبْلَةَ ، فَكَبَّرَ لِلصَّلَاةِ ، ثُمَّ خَلَّى عَنْ رَاحِلَتِهِ ، فَصَلَّى حَيْثُمَا تَوَجَّهَتْ بِهِ " .
It is narrated from Hazrat Anas (may Allah be pleased with him) that when the Prophet (peace and blessings be upon him) wished to offer voluntary prayers during travel on his camel, he would say the takbeer facing the qiblah, then leave it, and whichever direction it (the camel) was facing, he would continue to pray in that direction.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 13109
Hadith Grading حکم دارالسلام: حديث صحيح، وهذا إسناد حسن.