Exodus 12: 29 And it came to pass, that at midnight the Lord smote all the firstborn in the land of Egypt, from the firstborn of Pharaoh that sat on his throne unto the firstborn of the captive that was in the dungeon; and all the firstborn of cattle.
However, the next example given in the Bible is very different, for Amenhotep 2, the pharaoh that ruled during the Exodus, tracked a different course, after he was humbled by The God of heaven. Instead of doing like David, Nebuchadnezzar and the king of Nineveh, he dug in his heels, buried his head in the sand, and utterly refused to repent, pray, and turn from his wicked ways. The same God who restored and forgave David and Nebuchadnezzar would have done the same for this Pharaoh.
But, like satan, when he was reproved, he only became more desperate, stubborn, and bitter. In other words, he would never acknowledge God, for doing so would damage personal, and national pride, and thus, pharaoh decided to drag the entire nation down the drain with him. One would think that after the burial of his son, the king of Egypt would repent and turn from his wicked ways. But no, after the initial shock and awe of that fateful night, he continues to dig in his heels, for he regroups, and instead of repenting, he determines to pursue the Hebrews.
Exodus 12:30 And Pharaoh rose up in the night, he, and all his servants, and all the Egyptians; and there was a great cry in Egypt; for there was not a house where there was not one dead. 31 And he called for Moses and Aaron by night, and said, Rise up, and get you forth from among my people, both you and the children of Israel; and go, serve the Lord, as you have said.
Exodus 12:33 And the Egyptians were urgent upon the people, that they might send them out of the land in haste; for they said, We be all dead men.
May The Lord add His blessing to the study of His word. God bless!