Imam An-Nawawee (may Allah shower blessings on him) mentioned all these Ahaadeeth in the book, Riyaad us-Saaliheen, under the chapter of good conduct. And some of the Ahaadeeth have been mentioned earlier.
As for the Hadeeth of Nawaas bin Sam'aan (may Allah be pleased with him) that the Prophet ﷺ said: 'Virtue is noble character', this clause has been explained previously. In the earlier place, we explained that good character comes with numerous virtues.
As for sin, he said ﷺ: 'What causes doubt in you and you hate that people should know about it', that is, it disturbs the heart, the mind is not at rest regarding it, and you dislike that people should catch you doing it.
However, this statement is for a believer. Sins do not cause any distress to the heart of an ardent sinner, and he does not care if people know about it, he would rather spread it and he does not attach any importance to it. In contrast, Allah – the Mighty and Sublime - has filled the heart of a believer with light, which troubles his heart whenever he wants to commit evil. So, he will hesitate to do it and he will dislike that people should meet him on it. This distinction only applies to a believer.
However, sinners do not attach importance to others discovering their crimes, as this would not cause any reverberation in their hearts. Rather they would commit the acts with all sense of impunity and hilarity of the hearts, and we seek refuge with Allah. Allah – the Mighty and Sublime - has said:
“Is he, then, to whom the evil of his deeds made fair seeming, so that he considers it as good (equal to one who is rightly guided)? Verily, Allah sends astray whom He wills, and guides whom He wills. So destroy not yourself (O Muhammad) in sorrow for them. Truly, Allah is the All-Knower of what they do!” [Al-Faatir: 8].
An evil deed may be made pleasing to some people, they will be happy with it as we see those who take intoxicants do; they are happy when they do that. Likewise, those who devour Riba, those who engage in prostitution and adultery are all happy when they perpetrate these acts; they do not show any concern for their deeds. Even at times, when they do it in secret, they will go out to announce it in public as some sinners do when they return from foreign countries, realms known for immoralities. When these people come back after they might have committed various atrocities there, they would narrate what they did in those countries; that they committed illegal sexual intercourse, drank a particular brand of alcohol and similar acts.
So, these Ahaadeeth contain a description of the Messenger of Allah ﷺ; he would not engage in vain talks – he was far from that naturally. He was not indecent, in person and inherent aptitude, but modest and easy-going; he ﷺ was the farthest of people from profanity in speech or action.
The Hadeeth also encourages good conduct; it is one of the weightiest things on the Scales on the Day of Resurrection. And this is by way of awakening desire for it.
So it is incumbent on you, my Muslim brother, to enhance your conduct with Allah – the Mighty and Sublime – by accepting His Judgements, His Universal and Legislative Rulings, with open heart, obedience, pleasure and submission. You must also enhance your conduct with the slaves of Allah – the Mighty and Sublime. Verily Allah – the Mighty and Sublime – loves those who do good.
And Allah Alone grants success.