The Prophet (may Allah's peace and blessings be upon him) clarifies that no Muslim covers his fellow Muslim in any matter except that Allah Almighty would cover him on the Day of Judgment, as every deed has a recompense that suits it. Allah's covering for him would be by covering his faults and sins without disclosing them to the people gathered on Judgement Day, or it could be by not holding him accountable for them and not mentioning them to him.
Lessons
It is legitimate to cover a Muslim if he sins, along with expressing disapproval, offering him advice, and threatening him with Allah. However, if he is from the evildoers and from the corrupt who commit sins and acts of defiant disobedience openly, then he should not be covered, for this would encourage him to commit more sins. Therefore, his case should be referred to the ruler, even if he is to be mentioned, because he is known for his defiant disobedience and sinning.
Urging the act of covering others' faults.
The benefits of covering include: giving the sinner the chance to reconsider his actions and repent to Allah because publicizing defects and faults is from spreading immorality and it spoils the social atmosphere besides tempting people to commit them.
Explanation in Arabic
يُبَيِّنُ النبيُّ صلى الله عليه وسلم أنه لا يَستر مسلمٌ أخاه المسلم في أمر من الأمور، إلا سَتره الله عز وجل يوم القيامة؛ فالجزاء من جنس العمل، ويكون سِتْرُ اللهِ له بستر عيوبه ومعاصيه عن إذاعتها على أهل المحشر، وقد يكون بترك محاسبته عليها وذكرها له.
مشروعية السِّتْر على المسلم إذا فَعَلَ معصية، مع الإنكار عليه، والنصيحة له، وتخويفه بالله، أما إذا كان من أهل الشر والفساد المجاهرين بالمعاصي والفسق، فإنه لا ينبغي الستر عليهم؛ لأن الستر عليهم يُجَرِّئُهم على المعاصي، وإنما يُرْفَع أمرُه إلى ولاة الأمور، ولو كان في هذا ذكر له؛ لأنه مُعْلِن بفسقه ومعصيته.
الترغيب في ستر أخطاء الآخرين.
من فوائد الستر: إتاحة الفرصة للمذنب أن يراجِعَ نفسه ويتوب إلى الله؛ لأن إعلان العيوب والعورات من إشاعة الفاحشة، ويُفسِد الجَوَّ الاجتماعي، ويُغْرِي الناس بارتكابها.