The Messenger of Allah [SAW] had the (hands and feet) of those who drove off his camels cut off, and their eyes gouged out with fire. Allah rebuked him for that, and Allah, Most High, revealed the entire verse: "The recompense of those who wage war against Allah and His Messenger." (Using translation from Nasāʾī 4042)
أَنَّ رَسُولَ اللهِ ﷺ لَمَّا قَطَعَ الَّذِينَ سَرَقُوا لِقَاحَهُ وَسَمَلَ أَعْيُنَهُمْ بِالنَّارِ عَاتَبَهُ اللهُ فِي ذَلِكَ فَأَنْزَلَ اللهُ تَعَالَى {إِنَّمَا جَزَاءُ الَّذِينَ يُحَارِبُونَ اللهَ وَرَسُولَهُ} [المائدة 33] الْآيَةَ كُلَّهَا