Leviticus 4:23

and afterwards he shall understand his sin: he shall offer an immaculate he-goat from among the goats, as a sacrifice to the Lord

Other versions

King James Version

Or if his sin, wherein he hath sinned, come to his knowledge; he shall bring his offering, a kid of the goats, a male without blemish:

English Standard Version

or the sin which he has committed is made known to him, he shall bring as his offering a goat, a male without blemish,

New International Version

When he is made aware of the sin he committed, he must bring as his offering a male goat without defect.