Some people raided the camels of the Prophet ﷺ, drove them off, and apostatised. They killed the herdsman of the Messenger of Allah ﷺ who was a believer. He (the Prophet) sent (people) in pursuit of them and they were caught. He had their hands and feet cut off, and their eyes put out. The verse regarding fighting against Allah and His Prophet ﷺ was then revealed. These were the people about whom Anas ibn Malik informed al-Hajjaj when he asked him.
أَنَّ نَاسًا أَغَارُوا عَلَى إِبِلِ النَّبِيِّ ﷺ فَاسْتَاقُوهَا وَارْتَدُّوا عَنِ الإِسْلاَمِ وَقَتَلُوا رَاعِيَ رَسُولِ اللَّهِ ﷺ مُؤْمِنًا فَبَعَثَ فِي آثَارِهِمْ فَأُخِذُوا فَقَطَعَ أَيْدِيَهُمْ وَأَرْجُلَهُمْ وَسَمَلَ أَعْيُنَهُمْ قَالَ وَنَزَلَتْ فِيهِمْ آيَةُ الْمُحَارَبَةِ وَهُمُ الَّذِينَ أَخْبَرَ عَنْهُمْ أَنَسُ بْنُ مَالِكٍ الْحَجَّاجَ حِينَ سَأَلَهُ