Leviticus 24:11-14

24:11 The Israelite woman’s son misused the Name and cursed, so they brought him to Moses. (Now his mother’s name was Shelomith daughter of Dibri, of the tribe of Dan.) 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.