Бамидбар 15:27 Галаха: Mishneh Torah, Foreign Worship and Customs

וְאִם־נֶ֥פֶשׁ אַחַ֖ת תֶּחֱטָ֣א בִשְׁגָגָ֑ה וְהִקְרִ֛יבָה עֵ֥ז בַּת־שְׁנָתָ֖הּ לְחַטָּֽאת׃

И если один человек согрешил по ошибке, то он должен предложить козу первого года за жертву за грех.

Mishneh Torah, Foreign Worship and Customs of the Nations

Whosoever worships idolatry, of his own free will, wantonly, is guilty of an offense punishable by excision; but if the worship took place in the presence of witnesses, and he was duly warned, he is sentenced to be stoned. If the worship was committed in ignorance, he should bring a standard sin-offering.1Keritot, 1; Sanhedrin, 60b—61a.C.