O ye Children of Adam! We have bestowed raiment upon you to cover your shame, as well as to be an adornment to you. But the raiment of righteousness,- that is the best. Such are among the Signs of Allah, that they may receive admonition! (7:26)
Raiment of (TAQWA) righteousness! What a beautiful way of putting across that righteousness will protect us from shame and also be our adornment on the Day of Judgment! The context of wearing modest clothes has been used to drive home a much higher truth!