linguistic:paraphrasing
Inheritance, rights and the first circumcision

When he was 13 years old, Ishmael was circumcised at the same time as all other males in Abraham's household, becoming a part of the covenant in a mass circumcision. His father Abram, given the new name "Abraham", then 99, was circumcised along with the others.

At the time of the covenant, God informed Abraham that his wife Sarah would give birth to a son, whom he was instructed to name Isaac. God told Abraham that He would establish his covenant through Isaac, and when Abraham inquired as to Ishmael's role, God answered that Ishmael has been blessed and that he "will make him fruitful, and will multiply him exceedingly; twelve princes shall he beget and I will make him a great nation." God also mentioned that "He will be a wild donkey of a man, His hand will be over (against) everyone, And everyone's hand will be against him; And he will live in the presence of his brethren."

A year later, Ishmael's half-brother Isaac was born to Abraham by his first wife Sarah when she was 90 years old, after she had ceased showing any signs of fertility.

On the day of feasting during which Abraham celebrated the weaning of Isaac, Ishmael was "mocking" or "playing with" Isaac (the Hebrew word מְצַחֵֽק, "meṣaḥeq" is ambiguous) and Sarah asked Abraham to expel Ishmael and his mother, saying: "Get rid of that slave woman and her son, for that slave woman's son will never share in the inheritance with my son Isaac." Her demand was painful for Abraham, who loved Ishmael. Abraham agreed only after God told him that "in Isaac your seed shall be called" and that God would "make a nation of the son of the bondwoman" Ishmael, since he was a descendant of Abraham (Genesis 21:11–13), God having previously told Abraham "I will establish My covenant with ", while also making promises concerning the Ishmaelite nation (Genesis 17:18–21).

At the age of 14, Ishmael was freed along with his mother. The Lord's covenant made clear Ishmael was not to inherit Abraham's house and that Isaac would be the seed of the covenant: "Take your son, your only son, whom you love and go to the region of Moriah." (Genesis 22:2–8)Abraham gave Ishmael and his mother a supply of bread and water and sent them away. Hagar entered in the wilderness of Beer-sheba where the two soon ran out of water and Hagar, not wanting to witness the death of her son, set the boy some distance away from herself, and wept. "And God heard the voice of the lad" and sent his angel to tell Hagar, "Arise, lift up the lad, and hold him in thine hand; for I will make him a great nation." And God "opened her eyes, and she saw a well of water", from which she drew to save Ishmael's life and her own. "And God was with the lad; and he grew, and dwelt in the wilderness, and became an archer." (Genesis 21:14–21)