The Prophet ﷺ gives two short, luminous definitions. Righteousness, al-birr, is good character. And sin is what wavers in your chest, what you would hate other people to discover about you. In a related narration he tells a man: consult your heart, even if the people give you their verdicts.
He is pointing to something Allah placed inside every sound soul: a conscience that flickers when we cross a line, a quiet unease that the heart feels before the mind can argue.
Where this hadith comes from
This hadith reaches us through two Companions, and that is part of why it carries such weight. The first half, righteousness is good character and sin is what wavers in your chest, was narrated by an-Nawwas ibn Sam'an (ra) and collected by Imam Muslim in his Sahih. The second half, the counsel to consult your heart, was narrated by Wabisah ibn Ma'bad (ra) and recorded in the Musnad of Imam Ahmad and by ad-Darimi with a good (hasan) chain.
Imam an-Nawawi placed it among his forty as a cornerstone of the inner life, the hadith that defines righteousness and sin not by a list but by the state of the heart. The two narrations sit side by side because they say the same thing from two directions: one names what righteousness and sin are, the other tells you where to find them.
The key words
What it means, line by line
Righteousness is good character: asked about al-birr, the whole of what is good, the Prophet (peace be upon him) answered with akhlaq. He did not begin with ritual but with how a person treats others, placing gentleness, honesty, and warmth at the heart of being righteous before Allah. Then sin: it is what wavers in your chest and what you would hate others to discover. Sin is named by the flinch it produces, the churn of a healthy conscience and the instinct to hide.
And so Wabisah's narration completes it: consult your heart. A sound heart often knows, even when others reassure you and you can find a justification, because Allah built a moral sense into the soul. The Qur'an roots this in the very making of the self: Allah inspired the soul with its wrongdoing and its piety (91:8), then declared who wins and who loses by what they do with it.
Righteousness is good character
It is striking that when asked about birr, righteousness, the Prophet ﷺ did not list rituals first. He said: good character. So much of what makes a person truly righteous is how they treat others, their gentleness, honesty, patience, and warmth. Worship and character are not rivals; but this hadith makes sure we never imagine we are righteous while being cruel.
Good character, then, is not a side virtue. It sits at the very centre of what it means to be a good person before Allah, the visible fruit of a heart turned toward Him.
Sin is what the heart flinches from
Then the definition of sin, and it is psychological before it is legal: sin is what wavers in your chest, what you would hate others to see you doing. The Prophet ﷺ is describing the inner flinch, the discomfort a healthy conscience feels at wrongdoing, the instinct to hide it.
And so the famous counsel: consult your heart. Even when others reassure you, even when you can find a justification, a sound heart often knows. This is not a licence to ignore knowledge and follow feelings; it is a recognition that Allah built a moral sense into us, one that, when kept clean, recognises wrong even before we can name why.
Keeping the conscience honest
But the Prophet ﷺ gave this advice to a Companion with a sound, sincere heart, and that is the catch. A conscience can be trained or deadened. Constant sin, bad company, and silencing the inner flinch dull it until wrong no longer registers; sincerity, worship, and lawful living keep it sensitive and true.
So this hadith is also a call to guard the instrument. Purify the soul, and it becomes a reliable guide that recognises righteousness and recoils from sin. Corrupt it, and you lose the very sense that was meant to bring you home. He succeeds who keeps the soul clean.
Carry this with you
Allah placed a conscience in you. Keep it clean, and consult it.
Righteousness is good character.
Not ritual alone, but how you treat others. We are never righteous while being cruel.
Sin makes the heart waver.
It is what unsettles your chest and what you would hate others to see. Notice the inner flinch.
Consult your heart.
A sound heart often knows, even when others reassure you and you can find a justification.
Guard the conscience.
Sin and bad company deaden it; sincerity and clean living keep it true. He succeeds who purifies the soul.
A du'a to carry
رَّبِّ ٱغْفِرْ وَٱرْحَمْ وَأَنتَ خَيْرُ ٱلرَّٰحِمِينَ
Rabbi-ghfir warham wa Anta khayru r-rahimin
My Lord, forgive and have mercy, and You are the best of the merciful. (Al-Mu'minun 23:118)
A du'a for a clean heart
The Prophet ﷺ trusted you with something profound: that Allah placed inside you a sense of right and wrong, a heart that glows at goodness and flinches at sin, often before the mind can explain why.
Your work is to keep that heart clean enough to hear. Purify it with sincerity and good, protect it from what deadens it, and then, in the unclear moments, consult it, and have the courage to follow what it already knows.
O Allah, purify our souls and make our hearts true. Let righteousness feel like home to us and sin feel like exile, and forgive us and have mercy on us, for You are the best of the merciful. Ameen.
The hadith is from sunnah.com: 'Righteousness is good character, and sin is what wavers in your soul...' narrated by an-Nawwas ibn Sam'an (ra) (Sahih Muslim 2553) and Wabisah (ra) (Ahmad and others), graded sahih / hasan. Qur'an citations (91:9-10 and 23:118) are in Uthmani script verified via quran.ai (ar-uthmani-minimal) with the Saheeh International translation. Per the editorial policy this stays with character and conscience. FOR SCHOLAR REVIEW before publication.