2 Chronicles 35:22

22 Josiah, however, would not turn away from him, but disguised himself to engage him in battle. He would not listen to what Necho had said at God’s command but went to fight him on the plain of Megiddo.

Read 2 Chronicles 35:22 Using Other Translations

Nevertheless Josiah would not turn his face from him, but disguised himself, that he might fight with him, and hearkened not unto the words of Necho from the mouth of God, and came to fight in the valley of Megiddo.
Nevertheless, Josiah did not turn away from him, but disguised himself in order to fight with him. He did not listen to the words of Neco from the mouth of God, but came to fight in the plain of Megiddo.
But Josiah refused to listen to Neco, to whom God had indeed spoken, and he would not turn back. Instead, he disguised himself and led his army into battle on the plain of Megiddo.