Generate a correctly punctuated version of the following text: And Pharaohs army was come forth out of Egypt and when the Chaldeans that besieged Jerusalem heard tidings of them they went up from Jerusalem
And Pharaoh's army was come forth out of Egypt; and when the Chaldeans that besieged Jerusalem heard tidings of them, they went up from Jerusalem.