Deuteronomy 30:17 Halakhah

וְאִם־יִפְנֶ֥ה לְבָבְךָ֖ וְלֹ֣א תִשְׁמָ֑ע וְנִדַּחְתָּ֗ וְהִֽשְׁתַּחֲוִ֛יתָ לֵאלֹהִ֥ים אֲחֵרִ֖ים וַעֲבַדְתָּֽם׃

But if thy heart turn away, and thou wilt not hear, but shalt be drawn away, and worship other gods, and serve them;

Read halakhic rulings (Jewish law) on Deuteronomy 30:17: and classical halakhic sources.