God punishes people according to what they have done, not arbitrarily. In the Bible, God chose believers before the creation of the world to be holy and blameless in His sight, predestining them to be adopted as His children according to His pleasure and will.