"Many will say to me in that day, Lord, Lord, have we not prophesied in thy name? and in thy name have cast out devils? and in thy name done many *wonderful works*?"
"And then will I profess unto them, I never knew you: depart from me, ye that work iniquity."
Jesus is talking here about people that look to their good deeds as evidence of their salvation. When they meet Jesus they tell him all the great things they have done, but completely forget about the key to salvation which is faith alone.
Christian sects are not in agreement of this because some Christian sects do not offer a saving gospel. Catholicism does not offer a saving gospel, for example.
We'd all do good to focus on the Bible as the final authority, and not the teaching and writing of men.