أَخْبَرَنَا الشَّافِعِيُّ رَضِيَ اللَّهُ عَنْهُ، قَالَ: أَخْبَرَنَا مَالِكٌ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ، قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يُصَلِّي عَلَى رَاحِلَتِهِ فِي السَّفَرِ حَيْثُمَا تَوَجَّهَتْ بِهِ.
It is narrated from Abdullah bin Umar (may Allah be pleased with them both) that he stated: The Messenger of Allah (ﷺ) would perform prayer on his camel during travel, whichever direction its face turned.