"O children of Adam, We have bestowed upon you clothing to conceal your private parts," meaning: garments, "and as an adornment," meaning: provisions and wealth.
"But the clothing of righteousness"—the nominative case is used based on a future-oriented expression—and the clothing of righteousness is: chastity.