Sunan an-Nasa'i, Book 25, Hadith 55 (Nasa'i 3145)

It was narrated from 'Ubadah bin As-Samit that the Messenger of Allah (ﷺ) said:

"Whoever fights seeking only an 'Iqbal, then he will have what he intended."