Matthew records Jesus saying:
Not everyone who says to me, ‘Lord, Lord,’ will enter the kingdom of heaven, but the one who does the will of my Father who is in heaven. On that day many will say to me, ‘Lord, Lord, did we not prophesy in your name, and cast out demons in your name, and do many mighty works in your name?’ And then will I declare to them, ‘I never knew you; depart from me, you workers of lawlessness.’—Matthew 7:21-23 (ESV)
And it shall come to pass that everyone who calls on the name of the LORD shall be saved. For in Mount Zion and in Jerusalem there shall be those who escape, as the LORD has said, and among the survivors shall be those whom the LORD calls.—Joel 2:32 (ESV)
Did Jesus mean something different than Joel (and Peter and Paul), did he disagree with the prophet, or did he not know (or remember) the prophecy?