Nawas bin Saman reported,

I stayed with the Messenger of Allah ﷺ in Medina for a year, and nothing kept me from making the formal hijrah except the desire to ask questions. For when one of us made hijrah, he would no longer ask the Messenger of Allah ﷺ about anything.So I asked him about righteousness and sin, and the Messenger of Allah ﷺ said, "Righteousness is good character, and sin is what unsettles your soul and what you would dislike for people to discover."

Muslim 6517

Sahih

حدثني هارون بن سعيد الأيلي حدثنا عبد الله بن وهب حدثني معاوية يعني ابن صالح عن عبد الرحمن بن جبير بن نفير عن أبيه

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

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

مسلم 6517صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Righteousness, maintaining ties, and good manners
Chapter
Tafsir of righteousness and sin
Numbering
Darussalam 6517
Muslim 6517