And when We took compact with the Children of Israel : ' You shall not serve any save God ; and to be good to parents , and the near kinsman , and to orphans , and to the needy ; and speak good to men , and perform the prayer , and pay the alms . ' Then you turned away , all but a few of you , swerving aside .