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.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?23 And then will I profess unto them, I never knew you:
depart from me, ye that work iniquity.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 point here is that to prophecise in his name, is NOT a commandment.
Casting out devils is NOT a commandment.
Therefore these items are not 'the will of God'. The will of God is that we keep the commandments.
I'm on the same page as you. I don't, at all, see the passage (Matt 7:21-23) as negating good works, or as making some statement that faith in Jesus is more important than doing GOD'S WILL. Jesus was clear that we should not work
iniquity. It's fine to do good works, but that's not what gets you to heaven. Living according to God's will, gets you to heaven.
"THY WILL BE DONE"