All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
You must know that Allah Almighty forgives all sins if one makes a sincere repentance. Allah Says (what means): {And whoever does a wrong or wrongs himself but then seeks forgiveness of Allah will find Allah Forgiving and Merciful.} [Quran 4:110]
Ibn Umar narrated that Prophet Muhammad said: "Almighty Allah accepts the repentance of His slave as long as he does not breath his last.” [Ahmad, At-Tirmithi and Ibn Maajah]
You should turn to Almighty Allah in sincere repentance, give up all sins, ask forgiveness from Allah, and multiply your good deeds,
Allah is the Most Forgiving and the Most Merciful.
You should know that temporary use of contraceptives is permitted provided they are not harmful and there should be a real necessity, such as to protect mother's health or to promote child's care in the family. If pregnancy is proven, abortion becomes forbidden in Islam. It is a transgression upon the Creatures of Allah.
Allah Says (what means): {And when he goes away, he strives throughout the land to cause corruption therein and destroy crops and animals. And Allah does not like corruption.} [Quran 2:205]
However, Muslim scholars agree that abortion may be permitted to save the mother's life, when trustworthy doctors certify that if the pregnancy continues the life of the mother is in danger.
Allah knows best.