Another Chain with similar meaning
There are narrations on this topic from 'Awf bin Malik, Khalid bin Al-Walid, Anas, and Samurah.
This Hadith is Hasan Sahih. Abu Muhammad is Nafi' the freed slave of Abu Qatadah.
This is acted upon according to some of the people of knowledge among the Companions of the Prophet ﷺ and others. It is the view of Al-Awza'i, Ash-Shafi'i and Ahmad.
Some of the people of knowledge said that the Imam takes Khumus from those goods. Ath-Thawri said:
"The Nafl is when the Imam says: 'Whoever got something, then it is his. And whoever killed a fighter, then his goods are his.' So it is allowed, and there is no Khumus taken from it." Ishaq said: "The goods are for the one who did the killing, unless it is something that is a large amount." So he saw that the Imam could take the Khumus from that, just as 'Umar bin Al-Khattab did.
• Jami` at-Tirmidhi, Vol. 3, Book of Military Expeditions, Hadith 1562b
• Jami` at-Tirmidhi, Book of Military Expeditions, Hadith 1562b