Al-Adab Al-Mufrad, Book 14, Hadith 302 (In-Book)

An-Nawwas ibn Sam'an al-Ansari reported that he asked the Messenger of Allah, may Allah bless him and grant him peace, about dutifulness and wrong action. He said, "Dutifulness is good character and wrong action is what works on yourself and which you dislike for other people to become aware of."

حَدَّثَنَا إِبْرَاهِيمُ بْنُ الْمُنْذِرِ، قَالَ‏:‏ حَدَّثَنَا مَعْنٌ، عَنْ مُعَاوِيَةَ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ جُبَيْرِ بْنِ نُفَيْرٍ، عَنْ أَبِيهِ، عَنِ النَّوَّاسِ بْنِ سَمْعَانَ الأَنْصَارِيِّ، أَنَّهُ سَأَلَ رَسُولَ اللهِ صلى الله عليه وسلم عَنِ الْبِرِّ وَالإِثْمِ‏؟‏ فَقَالَ‏:‏ الْبِرُّ حُسْنُ الْخُلُقِ، وَالإِثْمُ مَا حَكَّ فِي نَفْسِكَ وَكَرِهْتَ أَنْ يَطَّلِعَ عَلَيْهِ النَّاسُ‏.‏

sunnah.com