(Imām Bukhārī narrates): Abul Yaman narrated the hadith to us, he said: Shu'aib informed us, from az-Zuhri, he said: Salim bin Abdullah informed me, from Hazrat Ibn Umar (Allāh be pleased with them both),
that the Messenger of Allāh ﷺ used to offer voluntary prayer upon the back of the mount, whichever direction the mount faced, and he ﷺ used to gesture with his head, and Hazrat Ibn Umar (Allāh be pleased with them both) also used to do the same.
حَدَّثَنَا أَبُو اليَمَانِ، قَالَ أَخْبَرَنَا شُعَيْبٌ، عَنِ الزُّهْرِيِّ، قَالَ أَخْبَرَنِي سَالِمُ بْنُ عَبْدِ اللَّهِ، عَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُمَا
أَنَّ رَسُولَ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ كَانَ يُسَبِّحُ عَلى ظَهْرِ رَاحِلَتِهِ حَيْثُ كَانَ وَجْهُهُ يُومِئُ بِرَأْسِهِ
Reference: Sahih Al Bukhari 1105