Sunan Ibn Majah, Book 37, Hadith 126 (Ibn Majah 4229)
It was narrated from Abu Dharr:
“I said to the Prophet (ﷺ): ‘(What do you say about when) a man does a deed for the sake of Allah, and people love him for it?’ He said: ‘That is the immediate glad tidings of the believer.’”