Leviticus 7:21

Amplified Bible (AMP)
When anyone touches any unclean thing—human uncleanness, or an unclean animal, or any unclean [b]detestable thing—and then eats the meat of the sacrifice of the Lord’s peace offerings, that person shall be cut off from his people [excluding him from the atonement made for them].’”

Read Leviticus 7:21 in other translations