Cover someone’s shortcoming and be covered
The Prophet Muhammad said, "Whoever covers the shortcoming of a fellow Muslim, Allah will cover their shortcoming on the Day of Judgment." (HR. Al-Bukhari 2442 and Muslim 2580)
He also said, "No servant hides the shortcoming of another person in this world, except that Allah will hide their shortcoming in the Hereafter." (HR. Muslim 2590)
This means: If you protect someone’s dignity by not exposing what would embarrass them, Allah will protect you too — when it matters most.
(from Syajaratul Ma‘arif, Syaikh al-‘Izz bin Abdus Salam)