Exodus 20:26; Exodus 28:42

26 'And you shall not go up by steps to My altar, so that your nakedness will not be exposed on it.'
42 "You shall make for them linen breeches to cover their bare flesh; they shall reach from the loins even to the thighs.