English translation
3142. It was narrated that Abû 'Umâmah Al-Bâhilî 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 Allâh ﷺ 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: 'Allâh does not accept any deed, except that which is purely for Him, and seeking His Face.'" (Hasan)
