Daniel 6:10yeda
Even though Daniel knew that the new law had been written, he went to pray in an upstairs room in his house, which had windows that opened toward Jerusalem. Three times each day Daniel would kneel down to pray and thank God, just as he always had done.
Daniel's habit of thanking God in daily prayer despite danger.
Luke 18:11eucharisteō
The Pharisee stood alone and prayed, 'God, I thank you that I am not like other people who steal, cheat, or take part in adultery, or even like this tax collector.
A proud prayer of thanks shows thanks can be misused.