Numbers 5:17–27
For Moses ground to powder the calf and caused them to drink it in the water of ordeal; that by drinking of the calf all those who were living for its worship might die. For the sons of Levi ran upon them, those who ran to [help] Moses and girded on their swords. For the sons of Levi did not know whom they should slay, because those that worshipped were mingled with those that worshipped not. But He, for Whom it was easy to distinguish, distinguished those who were defiled from those who were not defiled; so that the innocent might give thanks that their innocence had not passed [unseen by] th...e Just One; and the guilty might be convicted that their offence had not escaped [the eye of] the Judge. But the sons of Levi were the open avengers. Accordingly Moses set a mark upon the offenders, that it might be easy for the avengers to avenge. For the draught of the calf entered those in whom the love of the calf was dwelling, and displayed in them a manifest sign, that the drawn sword might rush upon them. The congregation therefore which had committed fornication in [the worship of] the calf, he caused to drink of the water of ordeal, that the mark of adulteresses might appear in it. From hence was derived that law about women, that they should drink the water of ordeal, that by the mark that came on adulteresses, the congregation might be reminded of its fornication that was in the worship of the calf, and be on its guard with fear against another [fornication]; and remember the former [fornication] with penitence of soul; and that when they were judging their women, if they played the harlot against them, they might condemn themselves, who were playing the harlot against their God.
Source: Homily - On Our Lord, Section 6