Yours, O Lord, is the greatness and the power and the glory and the victory and the majesty, for all that is in the heavens and in the earth is Yours. Yours is the kingdom, O Lord, and You are exalted as head above all. ~ 1 Chronicles 29:11
Throughout the Bible, especially the New Testament, we are constantly reminded to give God the glory in everything we do. I often hear people say that they do good deeds and they feel that's enough to get into heaven; sounds reasonable - so why does the Bible tell us to constantly give God glory?
Matthew 5:16 says "In the same way, let your light shine before others, so that they may see your good works and give glory to your Father who is in heaven."
1) Firstly the Bible often tells us to humble ourselves; the point of this is to make us realize that we are not invincible - just look at what COVID has done to our lives and our world. By humbling ourselves, we put our pride away and, whether you are a believer or not, pride and ego are cancers on the soul and often cause us to burn bridges and build walls.
2) This view of doing good deeds alone does not look at the big picture. Ever heard of the saying "give a man a fish vs teach a man to fish" ? Now I am not against doing good deeds; in fact the Bible says faith without works is dead (James 2) however when we do works, we need to give God the glory. Doing good deeds alone ends up "giving a man a fish" which would help an immediate need for the time being however doing a good work and glorifying God actually "teaches the man to fish". By turning to God, you get all the provision you need (and more) on a daily basis and you end up saving your soul!
So the next time you have an opportunity to do a good deed, make sure it's done to glorify God in the name of Jesus and teach a man to fish rather than just giving him a fish.
Blessings to you.