Abdullah bin Masud reported,

A man said to the Messenger of Allah ﷺ, "How can I know when I have done well and when I have done wrong?"The Prophet ﷺ replied, "When you hear your neighbors say that you have done well, then you have done well, and when you hear them say that you have done wrong, then you have done wrong."

Azami 14661

Sahih

عن عبد الله بن مسعود قال

قال رجل لرسول الله ﷺ: كيف لي أن أعلم إذا أحسنت وإذا أسأت؟ قال النبي ﷺ: إذا سمعت جيرانك يقولون: أن قد أحسنت فقد أحسنت، وإذا سمعتهم يقولون: قد أسأت، فقد أسأت.

الأعظمي 14661صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of speech, words, and correspondence
Section
Good praise and bad praise
Numbering
Jami al-Kamil 14661 (2nd edition)
Azami 14661