A man praised another man in the presence of the Prophet ﷺ, so he said, "Woe to you, you have cut your companion's neck, you have cut your companion's neck," repeating it several times.Then he said, "If any of you must praise his brother, let him say, 'I reckon so-and-so to be such, and Allah is his reckoner, and I do not declare anyone pure before Allah. I reckon him to be thus and thus,' if he truly knows that of him."
أثنى رجل على رجل عند النبي ﷺ، فقال: ويلك قطعت عنق صاحبك قطعت عنق صاحبك مرارا، ثم قال: من كان منكم مادحا أخاه لا محالة، فليقل: أحسب فلانا، والله حسيبه، ولا أزكي على الله أحدا أحسبه كذا وكذا، إن كان يعلم ذلك منه.
Bukhari reported it in the Book of Testimonies (2662), and Muslim in the Book of Asceticism and Softening of Hearts (3000), both through the route of Khalid Haddan, from Abdul-Rahman bin Abu Bakra, from his father, who said, then mentioned it. The wording given is Bukhari's, and Muslim's wording is similar.