(Matthew 5:20) “For I say to you, That except your righteousness shall exceed the righteousness of the scribes and Pharisees, you shall in no case enter into the kingdom of heaven.”

I am a “scribe”. This mean that I write (Christian and other) books. The modern word for “scribe” may be  “book author”.

The words of Christ mean that if one writes correct theological books (even speaking correctly on the topic of salvation), this does not warrant his salvation. The faith needs to be manifested by the life.

It is confirmed by

(James 2) “19 You believe that there is one God; you do well: the devils also believe, and tremble. 20 But will you know, O vain man, that faith without works is dead? 21 Was not Abraham our father justified by works, when he had offered Isaac his son on the altar? 22 See you how faith worked with his works, and by works was faith made perfect? 23 And the scripture was fulfilled which said, Abraham believed God, and it was imputed to him for righteousness: and he was called the Friend of God. 24 You see then how that by works a man is justified, and not by faith only.”

The salvation depends on faith only not on deeds (and who say otherwise has no right to be called a Protestant), but the faith is true only when it is manifested by deeds. In the example of Abraham, he was justified by the fact that he did a certain deed (agreeing to sacrifice his son) accordingly the faith he had that God may resurrect him even if he got killed.