23 About the same time I realized that some of the men of Judah had married women from Ashdod, Ammon, and Moab. 24 Furthermore, half their children spoke the language of Ashdod or of some other people and could not speak the language of Judah at all. 25 So I confronted them and called down curses on them. I beat some of them and pulled out their hair. I made them swear in the name of God that they would not let their children intermarry with the pagan people of the land. 26 "Wasn't this exactly what led King Solomon of Israel into sin?" I demanded. "There was no king from any nation who could compare to him, and God loved him and made him king over all Israel. But even he was led into sin by his foreign wives. 27 How could you even think of committing this sinful deed and acting unfaithfully toward God by marrying foreign women?" 28 One of the sons of Joiada son of Eliashib the high priest had married a daughter of Sanballat the Horonite, so I banished him from my presence. 29 Remember them, O my God, for they have defiled the priesthood and the solemn vows of the priests and Levites. 30 So I purged out everything foreign and assigned tasks to the priests and Levites, making certain that each knew his work. 31 I also made sure that the supply of wood for the altar and the first portions of the harvest were brought at the proper times. Remember this in my favor, O my God.

Matthew Henry's Commentary on Nehemiah 13:23-31

Commentary on Nehemiah 13:23-31

(Read Nehemiah 13:23-31)

If either parent be ungodly, corrupt nature will incline the children to take after that one; which is a strong reason why Christians should not be unequally yoked. In the education of children, great care should be taken about the government of their tongues; that they learn not the language of Ashdod, no impious or impure talk, no corrupt communication. Nehemiah showed the evil of these marriages. Some, more obstinate than the rest, he smote, that is, ordered them to be beaten by the officers according to the law, Deuteronomy 25:2,3. Here are Nehemiah's prayers on this occasion He prays, "Remember them, O my God." Lord, convince and convert them; put them in mind of what they should be and do. The best services to the public have been forgotten by those for whom they were done, therefore Nehemiah refers himself to God, to recompense him. This may well be the summary of our petitions; we need no more to make us happy than this; Remember me, O my God, for good. We may humbly hope that the Lord will remember us and our services, although, after lives of unwearied activity and usefulness, we shall still see cause to abhor ourselves and repent in dust and ashes, and to cry out with Nehemiah, Spare me, O my God, according to the greatness of they mercy.