It was narrated that Zaid bin Khalid Al-Juhani said:
“A man from (the tribe of) Ashja’ died in Khaibar, and the Prophet (ﷺ) said: ‘Offer the funeral prayer for your companion.’ The people found that strange.* When he saw that, he said: ‘Your companion stole from the spoils of war (when fighting) in the cause of Allah.’”