Hast thou not seen those who praise themselves for purity? Nay, Allah purifieth whom He will, and they will not be wronged even the hair upon a date-stone.
Self-praise is not permitted
It is not permissible for a created being sue) as man to praise himself. The Holy Qur’an says: Do not pretend to be pure; He knows best who is really God-fearing) (53:32). That is to say, a man can be praised only if he fears Allah, but Allah alone knows to what degree a particular man possesses this quality, known as Taqwa. As for Allah praising Himself, the reason is that man is not capable of praising the glory and greatness of Allah in a befitting manner. Not to speak of others, the Holy Prophet (S) has exclaimed: (I cannot properly praise You!). Therefore,
Allah Himself has taught man the mode of praising Him.
Shafi, Muhammad (2008). Maariful Quran. maarif-volum1-english.pdf (islamicweblibrary.com)