[Machine] The Messenger of Allah ﷺ used to recite tasbih (glorification of Allah) while riding his mount, without concerning himself with the direction his face was facing. He would nod his head in affirmation. Ibn Umar used to do the same.
أَنَّ رَسُولَ اللهِ ﷺ كَانَ يُسَبِّحُ وَهُوَ عَلَى ظَهْرِ رَاحِلَتِهِ لَا يُبَالِي حَيْثُ كَانَ وَجْهُهُ وَيُومِئُ بِرَأْسِهِ إِيمَاءً وَكَانَ ابْنُ عُمَرَ يَفْعَلُ ذَلِكَ