Jesus says in Matthew 19:17 no one is good but God alone and if we are to enter into eternal life we have to keep the commandments.
ESV - 17 And he said to him, "Why do you ask me about what is good? There is only one who is good. If you would enter life, keep the commandments.
For follow-up discussion and general commentary on the topic. Comments are sorted chronologically.