Psa 138:1-8. David thanks God for His benefits, and anticipating a wider extension of God’s glory by His means, assures himself of His continued presence and faithfulness.
I will praise thee with my whole heart - (Compare Psa 9:1).
before the gods - whether angels (Psa 8:5); or princes (Exo 21:6; Psa 82:6); or idols (Psa 97:7); denotes a readiness to worship the true God alone, and a contempt of all other objects of worship.