Galatians 3:11. “But that no man is justified by the law in the sight of God, it is evident: for, The just shall live by faith.”
God never said anywhere that our own adherence to every letter of the law, our own good works, would take us to heaven. It is clear all through the scriptures that we have eternal life not by our works, but by our faith. God said it. Jesus provided it.
Habakkuk 2:4 is just one of many verses that teach faith, not works.
Where we sometimes stumble is over the idea that if we are not doing good works, then we must not have faith; that you can’t have the one without the other.
Our good works truly will not get us to heaven; what they will do is demonstrate our faith to the world around us, thereby sharing the love of God with all those with whom we come in contact. Our good works are a result of our faith.
There aren’t enough good works in the whole universe for them to result in faith. Faith results in good works, not the other way round.