Abu Bakra reported,

The Prophet ﷺ was once told about a certain man, and someone said, "Messenger of Allah, there is no man after the Messenger of Allah ﷺ better than him in such and such."The Prophet ﷺ said, "Woe to you, you have cut your companion's neck!" He repeated this several times. Then the Messenger of Allah ﷺ said, "If one of you must praise his brother, let him say, 'I reckon so-and-so to be such,' if he indeed thinks that of him, and I do not declare anyone pure before Allah."

Muslim 7502

Sahih

و حدثني محمد بن عمرو بن عباد بن جبلة بن أبي رواد حدثنا محمد بن جعفر ح و حدثني أبو بكر بن نافع أخبرنا غندر قال شعبة حدثنا عن خالد الحذاء

عن عبد الرحمن بن أبي بكرة عن أبيه

عن النبي ﷺ أنه ذكر عنده رجل فقال رجل يا رسول الله ما من رجل بعد رسول الله ﷺ أفضل منه في كذا وكذا فقال النبي ﷺ ويحك قطعت عنق صاحبك مرارا يقول ذلك ثم قال رسول الله ﷺ إن كان أحدكم مادحا أخاه لا محالة فليقل أحسب فلانا إن كان يرى أنه كذلك ولا أزكي على الله أحدا

مسلم 7502صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Asceticism and heart-softening matters
Chapter
Prohibition of praise if it is excessive and there is fear of it causing tribulation to the one being praised
Numbering
Darussalam 7502
Muslim 7502