You are confusing too many different Bible verses together. You are mixing up Matthew 7:23 with Matthew 25:21, 34, 41. Here they are:
Matthew 7:23 And then will I profess unto them, I never knew you: depart from me, ye that work iniquity.
Matthew 25:21 His lord said unto him, Well done, thou...