In Psalm 136:1, David wanted the people to give thanks to the Lord. The scripture is clear that we should enter into His gates with Thanksgiving according to Psalm 100:4.