A man said: Messenger of Allah, a man wishes to take part in jihad in Allah's path desiring some worldly advantage? The Prophet ﷺ said: He will have not reward. The people thought it terrible, and they said to the man: Go back to the Messenger of Allah ﷺ, for you might not have made him understand well. He, therefore, (went and again) asked: Messenger of Allah, a man wishes to take part in jihad in Allah's path desiring some worldly advantage? He replied: There is no reward for him. They again said to the man: Return to the Messenger of Allah. He, therefore, said to him third time. He replied: There is no reward for him. (Using translation from Abū Dāʾūd 2516)
يَا رَسُولَ اللهِ الرَّجُلُ يُرِيدُ الْجِهَادَ فِي سَبِيلِ اللهِ وَهُوَ يَبْتَغِي عَرَضَ الدُّنْيَا؟ فَقَالَ رَسُولُ اللهِ ﷺ لَا أَجْرَ لَهُ فَأَعْظَمَ النَّاسُ ذَلِكَ وَقَالُوا لِلرَّجُلِ عُدْ لِرَسُولِ اللهِ ﷺ لَعَلَّهُ لَمْ يَفْهَمْ فَعَادَ فَقَالَ يَا رَسُولَ اللهِ الرَّجُلُ يُرِيدُ الْجِهَادَ فِي سَبِيلِ اللهِ وَهُوَ يَبْتَغِي عَرَضَ الدُّنْيَا؟ فَقَالَ رَسُولُ اللهِ ﷺ لَا أَجْرَ لَهُ ثُمَّ عَادَ الثَّالِثَةَ فَقَالَ رَسُولُ اللهِ ﷺ لَا أَجْرَ لَهُ