So Abram's wife Sarai took Hagar, her Egyptian slave, and gave her to her husband Abram as a wife for him. [This happened] after Abram had lived in the land of Canaan 10 years.
Genesis 16:3 In-Context
Now Sarai, Abram’s wife, had borne him no children. But she had an Egyptian slave named Hagar;
so she said to Abram, “The LORD has kept me from having children. Go, sleep with my slave; perhaps I can build a family through her.” Abram agreed to what Sarai said.
So after Abram had been living in Canaan ten years, Sarai his wife took her Egyptian slave Hagar and gave her to her husband to be his wife.
He slept with Hagar, and she conceived. When she knew she was pregnant, she began to despise her mistress.
Then Sarai said to Abram, “You are responsible for the wrong I am suffering. I put my slave in your arms, and now that she knows she is pregnant, she despises me. May the LORD judge between you and me.”