Matthew 2:13-14 (NIV)
13 “When they had gone, an angel of the Lord appeared to Joseph in a dream. “Get up,” he said, “take the child and his mother and escape to Egypt. Stay there until I tell you, for Herod is going to search for the child to kill him.” 14 So he got up, took the child and his mother during the night and left for Egypt, 15 where he stayed until the death of Herod. And so was fulfilled what the Lord had said through the prophet: “Out of Egypt I called my son.””
Herod was a man feeling threatened! He didn’t want a usurper to his throne. He took control of the situation and murdered the baby boys of the right age. But God protected his son and Joseph took Mary and Jesus and escaped to Egypt! Our human insecurities cause us to sin! Obedience also has its price, but a price worth paying.