Ezra 10:2

10:2 Then Shecaniah son of Jehiel, from the descendants of Elam, addressed Ezra:

“We have been unfaithful to our God by marrying foreign women from the local peoples. Nonetheless, there is still hope for Israel in this regard.

Ezra 10:10-11

10:10 Then Ezra the priest stood up and said to them, “You have behaved in an unfaithful manner by taking foreign wives! This has contributed to the guilt of Israel. 10:11 Now give praise to the Lord God of your fathers, and do his will. Separate yourselves from the local residents and from these foreign wives.”