It is godly to be thankful, though God Himself is not said to be thankful.
There is no description of God giving thanks or of the Lord giving thanks in Scripture. Jesus gave thanks to His Father for a few things (Matthew 11:25; John 6:11; John 11:41; Matthew 26:26-28), but this was the Son of God in flesh on earth.
For what it’s worth, I could not find any example of angels giving thanks either.
God is always the object, never the subject, of giving thanks. He is always the sun, never the moon, always the engine, never the wheels.
So gratitude is not an attribute of God. But gratitude was created by God as a uniquely human way to honor God. We become like who or what we worship, and in many ways we, as those who bear God’s image, take on His likeness as we see what He is like. We are transformed from one degree of glory to another as we behold Him (2 Corinthians 3:18), but in this case, as we behold Him we have more reasons to be thankful for His independent and good nature.
Paul wrote to Timothy that in the last days men would be, among other things, ungrateful (2 Timothy 3:2). Some would even have the appearance of godliness but be denying its power (3:5). Let the people of God be godly, not only in appearance, but in strong appreciation for the riches of His kindness to us.