It wasnarrated from Abu Sa'eed Al-Khudri that the Prophet (ﷺ)said:
"Whoever wants to be heard of, Allah will make him heard of, andwhoever wants to be seen, Allah will show him (i.e., make known tothepeople his true motives and intentions)."
English reference: Vol. 5, Book 37, Hadith 4206
Arabic reference: Book 37, Hadith 4346