Jabir said that they used to practise withdrawal while the Quran was being revealed, and in another report that this reached the Prophet ﷺ and he did not forbid them. When some asked him about it directly, he said that no soul that is meant to exist until the Day of Resurrection will fail to exist, which scholars understand to mean that no method overrules what Allah has decreed. On this basis most scholars allow temporary birth control, with conditions: the couple agree, because each has a right to children; the method does not harm health; and the reason is real, such as the mother's health or spacing births. Permanent sterilisation is generally not allowed without a medical need. The Quran forbids killing children for fear of poverty, which is a different matter from planning a family.
As to abortion, the Prophet ﷺ described the stages of creation in the womb: forty days, then forty as a clot, then forty as a lump, after which an angel is sent and the soul is breathed in. Most scholars take about 120 days as the point after which abortion is forbidden as the taking of a life, except when it is needed to save the mother's life. Before that point the schools differ: the Maliki school in its dominant view forbids it from conception, while Hanafi jurists and some Shafi'is and Hanbalis allowed it in the early period, some only for a reason. Many contemporary scholarly councils permit early abortion only for serious reasons such as a threat to the mother's life or health, and some extend this to rape or a grave foetal condition, while others do not.
Women who face such a decision need compassion and not judgment. Islam holds that life is sacred and also that Allah does not burden anyone beyond their capacity. It is best to speak with a doctor and a knowledgeable, trusted scholar about the specific case, and to remember that anyone who has made a mistake can seek Allah's mercy, which the Quran describes as vast.