[Machine] The Messenger of Allah ﷺ was brought a prisoner on the day of Hunayn. He had dust on his face, so his companions struck him with their sandals and whatever they had in their hands, until he said to them, "Stop." They stopped and the Messenger of Allah ﷺ passed away. This is the tradition, as reported by Abu Abdullah Al-Rahman. And this is more correct than what came before.
أَنَّ رَسُولَ اللهِ ﷺ أُتِيَ بِشَارِبٍ يَوْمَ حُنَيْنٍ فَحَثَى فِي وَجْهِهِ التُّرَابَ ثُمَّ أَمَرَ أَصْحَابَهُ فَضَرَبُوهُ بِنِعَالِهِمْ وَبِمَا كَانَ فِي أَيْدِيهِمْ حَتَّى قَالَ لَهُمْ «ارْفَعُوا» فَرَفَعُوا فَتُوُفِّيَ رَسُولُ اللهِ ﷺ وَتِلْكَ سُنَّةٌ قَالَ أَبُو عَبْدِ الرَّحْمَنِ وَهَذَا أَوْلَى بِالصَّوَابِ مِنَ الَّذِي قَبْلَهُ