وَعَنْ عَوْفِ بْنِ مَالِكٍ الْأَشْجَعِيِّ قَالَ : سَمِعْتُ النَّبِيَّ - صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ - يَقُولُ : " مَنْ قَامَ مَقَامَ رِيَاءٍ رَاءَى اللَّهُ بِهِ ، وَمَنْ قَامَ مَقَامَ سُمْعَةٍ سَمَّعَ اللَّهُ بِهِ " . رَوَاهُ الطَّبَرَانِيُّ ، وَإِسْنَادُهُ حَسَنٌ .
Sayyiduna Awf bin Malik al-Ashja'i (may Allah be pleased with him) states: I heard the Prophet (peace and blessings be upon him) say: "Whoever stands in a position of showing off, Allah Almighty will expose his showing off; and whoever stands in a position of seeking fame, Allah Almighty will expose his desire for fame."
Al-Tabarani recorded it, and its chain is hasan (good).