When the Messenger of Allah ﷺ cut off (the hands and feet of) those who had stolen his camels and he had their eyes put out by fire (heated nails), Allah reprimanded him on that (action), and Allah, the Exalted, revealed: "The punishment of those who wage war against Allah and His Apostle and strive with might and main for mischief through the land is execution or crucifixion." (Using translation from Abū Dāʾūd 4370)
أَنَّ رَسُولَ اللهِ ﷺ لَمَّا قَطَعَ الَّذِينَ سَرَقُوا لِقَاحَهُ وَسَمَلَ أَعْيُنَهُمْ بِالنَّارِ عَاتَبَهُ اللهُ فِي ذَلِكَ فَأَنْزَلَ اللهُ ﷻ {إِنَّمَا جَزَاءُ الَّذِينَ يُحَارِبُونَ اللهَ وَرَسُولَهُ وَيَسْعَوْنَ فِي الْأَرْضِ فَسَادًا أَنْ يُقَتَّلُوا أَوْ يُصَلَّبُوا} [المائدة 33] الْآيَةَ قَوْلُ قَتَادَةَ وَأَبِي الزِّنَادِ وَغَيْرِهِمَا نُزُولُ الْآيَةِ فِيهِمْ مُرْسَلٌ