Leviticus 24:15

15 Then tell the people of Israel that anyone who curses God must suffer the consequences

Leviticus 24:15 In-Context

13 The Lord said to Moses,
14 "Take that man out of the camp. Everyone who heard him curse shall put his hands on the man's head to testify that he is guilty, and then the whole community shall stone him to death.
15 Then tell the people of Israel that anyone who curses God must suffer the consequences
16 and be put to death. Any Israelite or any foreigner living in Israel who curses the Lord shall be stoned to death by the whole community.
17 "Any who commit murder shall be put to death,
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.