Sunan Ibn Majah, Book 37, Hadith 4346 (In-Book) ⓘ
It was narrated from Abu Sa’eed Al-Khudri that the Prophet said: “Whoever wants to be heard of, Allah will make him heard of, and whoever wants to be seen, Allah will show him (i.e., make known to the people his true motives and intentions).”
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَأَبُو كُرَيْبٍ قَالاَ حَدَّثَنَا بَكْرُ بْنُ عَبْدِ الرَّحْمَنِ، حَدَّثَنَا عِيسَى بْنُ الْمُخْتَارِ، عَنْ مُحَمَّدِ بْنِ أَبِي لَيْلَى، عَنْ عَطِيَّةَ الْعَوْفِيِّ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ، عَنِ النَّبِيِّ ـ صلى الله عليه وسلم ـ قَالَ " مَنْ يُسَمِّعْ يُسَمِّعِ اللَّهُ بِهِ وَمَنْ يُرَاءِ يُرَاءِ اللَّهُ بِهِ " .
also referenced under: Hadith 4206 (Reference) & Volume 5, Book 37, Hadith 4206 (DarusSalam)