Sunan Ibn Majah, Hadith 2546

It was narrated from Ibn `Abbas that the Prophet said: “Whoever conceals the (hidden) fault of his Muslim brother, Allah (SWT) will conceal his faults on the Day of Resurrection. Whoever exposes the fault of his Muslim brother, Allah will expose his faults, until (so that) He shames him, due to it, in his (own) house.”

حَدَّثَنَا يَعْقُوبُ بْنُ حُمَيْدِ بْنِ كَاسِبٍ، أَنْبَأَنَا مُحَمَّدُ بْنُ عُثْمَانَ الْجُمَحِيُّ، حَدَّثَنَا الْحَكَمُ بْنُ أَبَانَ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ مَنْ سَتَرَ عَوْرَةَ أَخِيهِ الْمُسْلِمِ سَتَرَ اللَّهُ عَوْرَتَهُ يَوْمَ الْقِيَامَةِ وَمَنْ كَشَفَ عَوْرَةَ أَخِيهِ الْمُسْلِمِ كَشَفَ اللَّهُ عَوْرَتَهُ حَتَّى يَفْضَحَهُ بِهَا فِي بَيْتِهِ ‏" ‏ ‏.‏

sunnah.com