Passage
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?
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?
Matthew 7:20 Wherefore by their fruits ye shall know them.
Matthew 7:21 Not every one that saith unto me, Lord, Lord, shall enter into the kingdom of heaven; but he that doeth the will of my Father which is in heaven.
Matthew 7:22 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?
Matthew 7:23 And then will I profess unto them, I never knew you: depart from me, ye that work iniquity.
Matthew 7:24 Therefore whosoever heareth these sayings of mine, and doeth them, I will liken him unto a wise man, which built his house upon a rock:
The verse centers on "lord", "prophesied", "name", "cast", and "devils". It is saying that the verse draws attention to "lord" and "prophesied", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 21's "Not every one that saith unto me..." into verse 23's "And then will I profess unto them...", so "lord" and "prophesied" belong inside that flow. In Matthew context, the local focus is Christ, faith, and discipleship.
A plain takeaway is to answer the verse's own emphasis on "lord" and "prophesied" with trust shaped by these words, not by a vague optimism outside the passage.