From love of God springs gratitude. This consists in the obligation to manifest our acknowledgment (הוראה) of God's benefits, of His goodness even in sufferings --- in words, through hymns of praise and prayers of thanksgiving, but still more in deeds, by joyfully sacrificing our life and our goods for the worship of God, for the glorification of His name in the sanctuary, but most of all for the happiness of our fellow human beings, by gladdening them with benefactions and helping to free their path of life from obstacles.
"He who offers thanks honors Me; and he who prepares a way, him will I let see the divine salvation." (Ps. 50:23)
"Open to me the gates of salvation, that I may enter and thank the Lord! 'This gate is the Eternal's; the righteous enter here.' I thank Thee that Thou hast visited me with sufferings; Thou hast become my help." (Ps. 118:19--21)
"God is my fortress and my shield; in Him my heart trusts, and I am helped. Therefore my inmost self exults, and with my song I would thank Him." (Ps. 28:7)
David says at the building of the Temple: "And now, our God, we thank Thee and praise Thy glorious name! For who am I, and what is my people, that we should be able to keep back the strength to offer such things freely? --- For all comes from Thee, and from Thy hand we give to Thee!" (כי ממך הכל ומידך נתנו לך) (1 Chron. 29:13, 14)
"'With all thy heart' --- give thyself to the Lord --- > Consecrate to Him the good, offer Him the evil inclination; > 'With all thy soul' --- when they take thy life from thee, > Remain like 'Akiba' cheerful, glad of mood; > 'With all thy might' --- offer God thy goods, > Even should it touch thee nearer than thy blood." (Agada.)