The death penalty for apostasy is also found in the Judeo-Christian Bible because Judaism was once a valid religion from God in the day when the Torah was still unadulterated from the tampering of some Rabbis, since then a lot has been changed of the Judeo-Christian Bible (sometimes even before it was put to paper) by selfish priests and rabbis to suit what some peoples itching ears wanted to hear (rather than what God had commanded), so much so that it was no longer a medium of salvation, but despite this some concepts still survives intact and that is the reason why many Biblical laws bare resemblance to Islamic ones because the God who revealed/inspired the original Holy Torah is the same Yahweh/HaShem who put His Word into the mouth of His servant, the unlettered Prophet Mahmad (peace and blessings of God be upon him) from the Ishmaelites, the brethren tribe of the Israelites.
**Deuteronomy **13: 6-10
If thy brother, the son of thy mother, or thy son, or thy daughter, or the wife of thy bosom, or thy friend, which [is] as thine own soul, entice thee secretly, saying, Let us go and serve other gods, which thou hast not known, thou, nor thy fathers; [Namely], of the gods of the people which [are] round about you, nigh unto thee, or far off from thee, from the [one] end of the earth even unto the [other] end of the earth; Thou shalt not consent unto him, nor hearken unto him; neither shall thine eye pity him, neither shalt thou spare, neither shalt thou conceal him: But thou shalt surely kill him; thine hand shall be first upon him to put him to death, and afterwards the hand of all the people. And thou shalt stone him with stones, that he die; because he hath sought to thrust thee away from the LORD thy God, which brought thee out of the land of Egypt, from the house of bondage.
Leviticus 24: 10-16
“There was a man whose father was an Egyptian and whose mother was an Israelite, named Shelomith the daughter of Dibri from the tribe of Dan, there in the Camp this man quarrelled with an Israelite, during the quarrel he cursed God, so they took him to Moses, put him under gurad - and wait for the Lord to tell them what to do with him; the Lord said to Moses, tell the people of Israel that anyone who curses God must suffer the consequences and be stoned to death.”
1 King 21:10
“And make two men who are good for nothing follows sit in front of him and saying you have cursed God the King. And bring him out and stone him to death.”
Deuteronomy 17: 2-7
“If any one, whether man or woman, in any village through out your land violates your covenant with God by worshipping other god’s, the sun, moon or stars - which I have strictly forbidden - first check the rumour very carefully, if there is no doubt it is true, then that man or woman shall be taken outside the city and shall be stone to death. However put a man to death on the testimony of only one witness there must be two or three witness, the witness shall throw the first stones, and then all the people shall joint in this way you will purge all evil from among you.”
Now in Islam people who are born into non-Muslim households are given the choice to live as a Kaafir or embrace the true religion but the Christian Bible claims that Jesus :as: is reported to have said regarding those who did not convert to Christianity:
Luke 19:27
But as for these enemies of mine who did not want me to reign over them–bring them here and slaughter them in my presence!