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."
English reference: Vol. 3, Book 20, Hadith 2546
Arabic reference: Book 20, Hadith 2643