In Islam and the Qur'an, Ishmael is considered one of the prophets.
In the Hebrew Bible (Old Testament), Ishmael's life is described in the Book of Genesis (Genesis 16, 17, 21, 25) and later texts. In Genesis 16 Sarai (Abram's wife) gives him her maid-servant Hagar to bear him children, since she believed that God had kept her from having children (Genesis 16:2).
Hagar became pregnant and despised Sarai (Genesis 16:4) who then expelled Hagar from the home of Abraham in retaliation. Hagar fled from Sarai and ran into the desert, where an angel found her near a spring.