The author (may Allah shower blessings on him) mentioned the Hadeeth of An-Nawaas bin Sam'aan in his book, Riyaad us-Saaliheen under the chapter of leading an abstemious life and avoiding what is doubtful. He reported that the Prophet ﷺ said: 'Piety is good manner, and sin is that which creates doubt and you do not like people to know of it'.
His words ﷺ: 'Piety is good manner' means that good manner is an aspect of piety as mentioned by Allah- the Mighty and Sublime:
"Help you one another in Al-Birr and At-Taqwa (virtue, righteousness and piety);" [Al-Maidah: 2].
Good manner comes into play in acts of worship to Allah- the Mighty and Sublime - and dealings with the slaves of Allah- the Mighty and Sublime.
In acts of worship, good manner implies that one should accept the
commandments of Allah— the Mighty and Sublime - with submission of the hearts and tranquillity of the soul, such that one will carry out the injunctions in the best manner without wavering, without exercising any doubt or showing displeasure. Thus, he readily observes the Prayer with the congregation, performs the Ablution even when it is cold, gives Zakat, fast in Ramadan and travel for Hajj without bitterness in his heart.
In dealing with people, he should be good to his parents, join ties of kinship, be good to his neighbours, and enjoin others to be good when dealing with people. He does that happily without seeing any difficulty in that, and does not get bored of doing it. Thus when you see yourself doing this, know that you are one of the righteous.
As for the sin, he hesitates and he is unconvinced of doing a particular thing; his mind is not at rest. However, this applies to the person whose heart is in tranquillity and is pleased with the Sharee'ah of Allah— the Mighty and Sublime.
As for the sinners and the transgressors, they do not feel bad when committing sins. You will see one of them happily committing evil, we seek refuge with Allah; he does not show any concern for the sins he is committing. However, a righteous person whom has been guided to what is right is he that will show concern for the sin he is committing when he is doing it, he will not have a rest of mind about it, and the sin will continue to trouble his mind. Then that is sin.
What a man is expected to do is to quit sinning; he should leave it for what is more pleasing to his heart without feeling any difficulty. This is al-Wara. Hence, the Prophet ﷺ said: 'Even if people pronounce it lawful and give you verdicts on it (that there is nothing wrong with the act)'. Even if a Mufti passes a Fatwa permitting the act for you, but your heart is not at rest, then leave it; this is from righteousness and goodness.
Even if you know there is a disease emanating from the Devil, which causes doubt and wavering in your heart, towards what Allah— the Mighty, and Sublime - has made lawful for you, do not consider the influence of Shaytaan. The Prophet ﷺ had only spoken about
people whose hearts are free of maladies; that is, when the person concerned does not have any disease in his heart. Hence, piety is what the heart tends towards, and sin is what troubles your heart and you hate people to know.
Allah alone grants success.