Genesis 21:10-12

21:10 So she said to Abraham, “Banish that slave woman and her son, for the son of that slave woman will not be an heir along with my son Isaac!”

21:11 Sarah’s demand displeased Abraham greatly because Ishmael was his son. 21:12 But God said to Abraham, “Do not be upset about the boy or your slave wife. Do all that Sarah is telling you because through Isaac your descendants will be counted.