ESV: When the king of Egypt was told that the people had fled, the mind of Pharaoh and his servants was changed toward the people, and they said, "What is this we have done, that we have let Israel go from serving us?"
NIV: When the king of Egypt was told that the people had fled, Pharaoh and his officials changed their minds about them and said, "What have we done? We have let the Israelites go and have lost their services!"
NASB: When the king of Egypt was told that the people had fled, Pharaoh and his servants had a change of heart toward the people, and they said, 'What is this that we have done, that we have let Israel go from serving us?'
CSB: When the king of Egypt was told that the people had fled, Pharaoh and his officials changed their minds about the people and said: "What have we done? We have released Israel from serving us."
NLT: When word reached the king of Egypt that the Israelites had fled, Pharaoh and his officials changed their minds. 'What have we done, letting all those Israelite slaves get away?' they asked.
KJV: And it was told the king of Egypt that the people fled: and the heart of Pharaoh and of his servants was turned against the people, and they said, Why have we done this, that we have let Israel go from serving us?
NKJV: Now it was told the king of Egypt that the people had fled, and the heart of Pharaoh and his servants was turned against the people; and they said, “Why have we done this, that we have let Israel go from serving us?”