Deuteronomy 17:3-6 Amplified Bible (AMP)

3. Who has gone and served other gods and worshiped them, or the sun or moon or any of the host of the heavens, which I have forbidden,

4. And it is told and you hear of it, then inquire diligently. And if it is certainly true that such an abomination has been committed in Israel,

5. Then you shall bring forth to your town's gates that man or woman who has done that wicked thing and you shall stone that man or woman to death.

6. On the evidence of two or three witnesses he who is worthy of death shall be put to death; he shall not be put to death on the evidence of one witness.

Deuteronomy 17