عن ابن عباس قَالَ قَالَ رَسُولُ اللّٰه صلّى اللّٰه عليه وسلّم: مَنْ يُسَمِّعْ يُسَمِّعِ اللّٰه بِهِ وَمَنْ يُرَائِي يُرَائِي اللّٰه بِهِ
Hazrat Ibn ‘Abbasra narrated, “Allah’s Messengersa said, ‘Whoever performs deeds for fame, Allah will punish him for it by exposing him; and whoever acts to show off, Allah will punish him for it by exposing him.’”
(Sahih Muslim, Kitab az-zuhdi wa r-raqa’iq, Bab mun ashraka fi amalihi ghayrAllah, Hadith 5287)