(Imām Bukhārī narrates): Musa narrated the hadith to us, he said: Abdul Aziz bin Muslim narrated the hadith to us, he said: Abdullah bin Dinar narrated the hadith to us, he narrated that
Hazrat Abdullah bin Umar (Allāh be pleased with them both) used to offer prayer upon his mount during a journey, whichever direction the mount turned, he would gesture, and Hazrat Abdullah mentioned that the Prophet ﷺ also used to do the same.
حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، قَالَ حَدَّثَنَا عَبْدُ العَزِيزِ بْنُ مُسْلِمٍ، قَالَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ دِينَارٍ، قَالَ
كَانَ عَبْدُ اللَّهِ بْنُ عُمَرَ رَضِيَ اللَّهُ عَنْهُمَا يُصَلِّي فِي السَّفَرِ عَلَى رَاحِلَتِهِ، أَيْنَمَا تَوَجَّهَتْ يُومِئُ وَذَكَر عَبْدُ اللَّهِ أَنَّ النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ كَانَ يَفْعَلُهُ
Reference: Sahih Al Bukhari 1096