Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Allah has guaranteed for the one who goes out to fight in His cause, driven out by nothing except striving in His path and belief in His words, that He will either admit him into Paradise or return him to the home from which he set out, along with whatever reward or spoils of war he has gained."

Bukhari 3123

Sahih

حدثنا إسماعيل قال حدثني مالك عن أبي الزناد عن الأعرج

عن أبي هريرة رضي الله عنه

أن رسول الله ﷺ قال تكفل الله لمن جاهد في سبيله لا يخرجه إلا الجهاد في سبيله وتصديق كلماته بأن يدخله الجنة أو يرجعه إلى مسكنه الذي خرج منه مع ما نال من أجر أو غنيمة

البخاري 3123صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Obligation of the fifth
Chapter
Saying of the Prophet ﷺ, "Spoils of war have been made lawful for you"
Numbering
Darussalam 3123
Bukhari 3123