And judge between them according to what God has sent down , and do not follow their caprices , and beware of them lest they tempt thee away from any of what God has sent down to thee . But if they turn their backs , know that God desires only to smite them for some sin they have committed ; surely , many men are ungodly .