"The Messenger of Allah (ﷺ) said: 'Whoever fights in the cause of Allah intending only to get an 'Iqal, he will have what he intended."
Sunan an-Nasa'i Book 25, Hadith 54