(Imām Bukhārī narrates): Abu Nu'aim narrated the hadith to us, he said: Shaiban narrated the hadith to us, from Yahya, from Muhammad bin Abdur Rahman, he said that Hazrat Jabir bin Abdullah (Allāh be pleased with them both) informed him that
the Prophet ﷺ used to offer voluntary prayer, and at that time he ﷺ used to be riding, and he was not facing towards the Qiblah.
حَدَّثَنَا أَبُو نُعَيْمٍ، قَالَ حَدَّثَنَا شَيْبَانُ، عَنْ يَحْيَى، عَنْ مُحَمَّدِ بْنِ عَبْدِ الرَّحْمَنِ، أَنَّ جَابِرَ بْنَ عَبْدِ اللَّهِ، أَخْبَرَهُ
أَنَّ النَّبِيَّ صَلّى اللهُ عَلَيْهِ وَسَلَّمَ كَانَ يُصَلِّي التَّطَوّع وَهُوَ رَاكِبٌ فِي غَيْرِ القِبْلَةِ
Reference: Sahih Al Bukhari 1094