Jesus taught two different truths. RayneBeau did NOT quote from Matthew 25:41-46, but Matthew 7:21-23.
Lets begin with verse 15-20 of Matthew 7
“Watch out for false prophets. They come to you in sheep’s clothing, but inwardly they are ferocious wolves. By their fruit you will recognize them. Do people pick grapes from thornbushes, or figs from thistles? Likewise, every good tree bears good fruit, but a bad tree bears bad fruit. A good tree cannot bear bad fruit, and a bad tree cannot bear good fruit. Every tree that does not bear good fruit is cut down and thrown into the fire. Thus, by their fruit you will recognize them.
False prophets and teachers, hope to obtain power and authority for themselves by their connection to Christ; Jesus himself is not their greatest need and desire.
Verse 21-23 of Matthew 7
“Not everyone who says to me, ‘Lord, Lord,’ will enter the kingdom of heaven, but only the one who does the will of my Father who is in heaven. Many will say to me on that day, ‘Lord, Lord, did we not prophesy in your name and in your name drive out demons and in your name perform many miracles?’ Then I will tell them plainly, ‘I never knew you. Away from me, you evildoers!’
The same can be said about the rcc. rc's only needed Jesus, to get a foot in the door, then obtain salvation through their own efforts. Thus never really knowing Jesus intimately. What Jesus is getting at in these passages is that just because a person has a connection to His name and performs good works, does not automatically grant them the priviledge to be with Him. To truly know Him is to live IN Him, abiding in Him and TRUST in Him exclusively.
But to truly know Him intimately we must be "born again" and when we are born again from above, we will desire to know and trust Him more deeply and intimately. NOT just initually, and then attempt to gain eternal life by trusting in an institution. Jesus commands us to come to HIM for rest.... NOT go to mary or an institution.