‘Auf b. Malik al-Ashja‘i and Khalid b. al-Walid told that God’s Messenger gave judgment that the killer should have what was taken from the man he killed, and did not make this subject to division into fifths.
I was present at Khaibar along with my masters who spoke about me to God's Messenger, telling him that I was a slave. He ordered that I should have a sword girded on me, and I was trailing it.* He then ordered that I should be given some inferior goods. I submitted to him an invocation with which I used to treat people who were possessed and he ordered me to reject part of it and retain part.
*Either because he was a small man, or because he was young.
Tirmidhi and Abu Dawud transmitted it, but the latter's version ended at “goods”.
Anas reported God’s Messenger as saying on that day, meaning the day of Hunain, “He who kills an infidel gets what he takes from him.” Abu Talha killed twenty men that day and got what was taken from them.