It wasnarrated from Jundab that the Messenger of Allah (ﷺ) said:
"Whoeverwants to be heard of, Allah will make him heard of, andwhoever wantsto be seen, Allah will show him (i.e., expose his realmotives)."
English reference: Vol. 5, Book 37, Hadith 4207
Arabic reference: Book 37, Hadith 4347