The Messenger of Allah ﷺ said, "Whoever goes out to fight in the cause of Allah intending nothing more than to gain a camel's rope, he shall have what he intended."
أخبرنا عمرو بن علي قال حدثنا عبد الرحمن قال حدثنا حماد بن سلمة عن جبلة بن عطية
قال رسول الله ﷺ من غزا في سبيل الله ولم ينو إلا عقالا فله ما نوى
[Its chain is hasan] Ahmad narrated it (5/320) from Abdul-Rahman bin Mahdi, with the same chain, and it is in al-Kubra, no. 4346. Ibn Hibban graded it sahih, no. 1605, as did Hakim (2/109), and Dhahabi. It has corroborating narrations in Abu Dawud, no. 2527, and elsewhere.