It was narrated that Abu 'Umamah Al-Bahili said: "A man came to the Prophet (ﷺ) and said: “What do you think of a man who fights seeking reward and fame - what will he have?' The Messenger of Allah (ﷺ) said: “He will not have anything.' He repeated it three times, and the Prophet (ﷺ) said to him: “He will not have anything.' Then he said: “Allah does not accept any deed, except that which is purely for Him, and seeking His Face””””"
Hasan SahihHasan SahihDaifBook 25 · Hadith 56