The Chapters on Jihad 24:2956
It wasnarrated that Zaid bin Khalid Al-Juhani said:
“A man from (thetribe of) Ashja’ died in Khaibar, and the Prophet (ﷺ) said:‘Offer the funeral prayer for your companion.’ The people foundthat strange.* When he saw that, he said: ‘Your companion stolefrom the spoils of war (when fighting) in the cause of Allah.’”