from Miqsam that Ibn 'Abbas said: "This Ayah: It is not for a Prophet to illegally take a part of the booty... (3:161) was revealed about a red robe that was missing from the Day of Badr. Some of the people said: 'Perhaps the Messenger of Allah ﷺ took it.' So Allah, Blessed and Most High, revealed: It is not for a Prophet to illegally take a part of the booty... until the end of the Ayah."
ابْنُ عَبَّاسٍ نَزَلَتْ هَذِهِ الآيَةُ ( وَمَا كَانَ لِنَبِيٍّ أَنْ يَغُلَّ ) فِي قَطِيفَةٍ حَمْرَاءَ افْتُقِدَتْ يَوْمَ بَدْرٍ فَقَالَ بَعْضُ النَّاسِ لَعَلَّ رَسُولَ اللَّهِ ﷺ أَخَذَهَا فَأَنْزَلَ اللَّهُ كَانَ لِنَبِيٍّ أَنْ يَغُلَّ ) إِلَى آخِرِ الآيَةِ