God deserves our praise in all things, both good and bad.  Psalm 47:1 says, Clap your hands, all you nations; shout to God with cries of joy. This Psalm was written during the Assyrian invasion of Judah, but the author of this Psalm still encouraged the people to praise God. Regardless of the circumstance, God deserves our praise.