[Machine] I saw the Messenger of Allah ﷺ glorifying Allah and nodding his head while riding his camel, facing any direction he turned to. However, the Messenger of Allah ﷺ did not do that in the obligatory prayers.
رَأَيْتُ رَسُولَ اللهِ ﷺ يُسَبِّحُ وَهُوَ عَلَى رَاحِلَتِهِ وَيُومِئُ بِرَأْسِهِ قِبَلَ أَيِّ وَجْهٍ تَوَجَّهَ وَلَمْ يَكُنْ رَسُولُ اللهِ ﷺ يَصْنَعُ ذَلِكَ فِي الصَّلَاةِ الْمَكْتُوبَةِ