Being thankful to God is good and we must always show our appreciation. Although sometimes we start talking to God first with our thanks giving. We may tell God how fortunate that God has us or even being thankful for something God would not endorse. We must first seek God
This is what I try and do when I pray:
Acknowledge and praise God. God is everything.
That my thinking would be the same as God’s
Acknowledge of my sinfulness. Where I am no longer at peace with God, others and myself
Then to be thankful, knowing the greatness of God and my own selfishness