Perhaps a variation of “law before gospel” is “wisdom before gospel.” We learn from Proverbs, Ecclesiastes, Job, and the Sermon on the Mount how to live wisely, but we also learn how foolish we are.
Jesus speaks wisdom with most authority. He is Wisdom himself. He exposes our folly, forgives our foolishness, and restores us to a knowledge and fear of the Lord.
“Grace will confront you again and again with your foolishness as it connects you eternally to the one who is Wisdom.” (Paul David Tripp)
“Christ, in whom are hidden all the treasures of wisdom and knowledge.” (Colossians 2:2-3)