Sunan an-Nasa'i, Book 25, Hadith 54 (In-Book) ⓘ
It was narrated from Yahya bin Al-Walid bin 'Ubadah bin As-Samit that his grandfather said: "The Messenger of Allah said: 'Whoever fights in the cause of Allah intending only to get an 'Iqal, he will have what he intended."
أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ، قَالَ حَدَّثَنَا عَبْدُ الرَّحْمَنِ، قَالَ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ جَبَلَةَ بْنِ عَطِيَّةَ، عَنْ يَحْيَى بْنِ الْوَلِيدِ بْنِ عُبَادَةَ بْنِ الصَّامِتِ، عَنْ جَدِّهِ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " مَنْ غَزَا فِي سَبِيلِ اللَّهِ وَلَمْ يَنْوِ إِلاَّ عِقَالاً فَلَهُ مَا نَوَى " .
also referenced under: Hadith 3138 (Reference) & Volume 4, Book 25, Hadith 3140 (DarusSalam)