Passage
Not every one that saith to me, Lord, Lord, shall enter into the kingdom of heaven: but he that doth the will of my Father who is in heaven, he shall enter into the kingdom of heaven.
Not every one that saith to me, Lord, Lord, shall enter into the kingdom of heaven: but he that doth the will of my Father who is in heaven, he shall enter into the kingdom of heaven.
Matthew 7:19 Every tree that bringeth not forth good fruit, shall be cut down, and shall be cast into the fire.
Matthew 7:20 Wherefore by their fruits you shall know them.
Matthew 7:21 Not every one that saith to me, Lord, Lord, shall enter into the kingdom of heaven: but he that doth the will of my Father who is in heaven, he shall enter into the kingdom of heaven.
Matthew 7:22 Many will say to me in that day: Lord, Lord, have not we prophesied in thy name, and cast out devils in thy name, and done many miracles in thy name?
Matthew 7:23 And then will I profess unto them, I never knew you: depart from me, you that work iniquity.
The verse centers on "saith", "lord", "shall", "enter", "kingdom", "heaven", and "doth". It is saying that the verse draws attention to "saith" and "lord", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 20's "Wherefore by their fruits you shall know..." into verse 22's "Many will say to me in that...", so "saith" and "lord" 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 "saith" and "lord" with trust shaped by these words, not by a vague optimism outside the passage.