Exodus 21:8

New American Standard Bible (NASB)
If she is [g]displeasing in the eyes of her master [h]who designated her for himself, then he shall let her be redeemed. He does not have authority to sell her to a foreign people because of his [i]unfairness to her.

Read Exodus 21:8 in other translations