Before I formed you in the womb I knew you, And before you were born I consecrated you; I have appointed you a prophet to the nations
In addition to that statement in Jeremiah 1:5, the Bible has other statements that show that God knew before He created anything or anyone, what would happen and He determined the outcome. For those who think it teaches we were spirits before being born as human babies, read this in the New Testament:
"Rebekah's children had one and the same father, our father Isaac. Yet before the twins were born or had done anything good or bad - in order that God's purpose in election might stand: not by works but by him who calls - she was told, 'The older will serve the younger.' Just as it is written [in Malachi 1:2-3, Old Testament] 'Jacob I loved, but Esau I hated'." (Romans 9:10-15)
God's decision was not based on what the twins had done before they were born for they could do nothing before they were born! See also 1 Corinthians 15:46-48 and 2 Cor 5:10. They refute the idea that we were spirits before our human birth, or that we did anything prior to having human bodies. Mormons teach that, but it is not Christian teaching.
So God was assuring Jeremiah of His omniscience - that He knows everything and everyone, even aeons before they came into existence - and He has already determined the outcome. Therefore Jeremiah could have confidence in the prophetic words God commanded him to speak to disobedient Israel. We likewise can have supreme confidence in the promises and prophecies of God.
So an embryo has a soul and those who are having abortions are committing murder which there is no excuse. God handles things differently than we do We are no all knowing nor do we know His reasons for what He allows or does not allow. He is the law giver and as such He and only He can enforce His laws. So by having an Abortion you take the law into your own hands and out of Gods hands.