One good reason for thinking some such words were actually spoken by Jesus involves the very point of the passage. People will enter the glorious Kingdom of God, or be painfully excluded from it, because of their ethical activities and for nothing else. Living a good life by helping those in need will earn a person salvation.

