حَدَّثَنَا هَاشِمُ بْنُ مَرْثَدٍ الطَّبَرَانِيُّ، ثنا أَبُو صَالِحٍ الْفَرَّاءُ، ثنا أَبُو إِسْحَاقَ الْفَزَارِيُّ، عَنْ سُفْيَانَ، عَنْ عَمْرِو بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ، قَالَ: «كَانَ النَّبِيُّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ يُصَلِّي حَيْثُ تَوَجَّهَتْ بِهِ رَاحِلَتُهُ»
Sayyiduna Ibn Umar (may Allah be pleased with them both) narrates: the Prophet (peace and blessings be upon him) would pray in whichever direction his mount was facing.