Ezra 10:1-4

1 0 Now while Ezra was davening and making vidduy, weeping and prostrating himself before the Beis HaElohim, a Kahal rav me’od, anashim, nashim, and yeladim, gathered to him from Yisroel, for the people wept bitterly.
2 And Shechanyah ben Yechiel, of the Bnei Elam, answered and said to Ezra, We have been unfaithful to Eloheinu, have married foreign am ha’aretz women; yet now there is mikveh for Yisroel in spite of this.
3 So now let us make a Brit with Eloheinu to put away all nashim and that born of them, according to the counsel of Adonoi and the charedim at the mitzvot of Eloheinu; and let it be done according to the Torah.
4 Arise! For this matter is your responsibility; but we will be with you; chazak and act.