Leviticus 24:12-14

24:12 So they placed him in custody until they were able to make a clear legal decision for themselves based on words from the mouth of the Lord.

24:13 Then the Lord spoke to Moses: 24:14 “Bring the one who cursed outside the camp, and all who heard him are to lay their hands on his head, and the whole congregation is to stone him to death.