Ps 34:1 reads, "I will bless the LORD at all times: His praise shall continually be in my mouth. KJV
In fact, the word "praise" appears 246 times in the KJV, mostly in the Psalms, which is considered the hymn book of the Bible. For various reasons we have occasion to praise, though we find it easier to do so when things are going well. Nevertheless, we must learn to praise the Lord in all things. Both Ps. 33:1 and Ps. 147:1 tell us that 'praise is comely', meaning 'suitable'.
God is always to be praised, regardless of our circumstances, which change continually. He is the one constant in our lives, always present and always faithful.When we praise, we focus on Him and what He can do rather on ourselves and what we cannot. He has promised to care for us when we cast our cares on Him (1Peter 5:7).
I am reminded of a Sunday School promotional idea we participated in many years ago at the church we attended while in Bible College. Everyone was encouraged to "praise the Lord" by using that phrase as often as possible throughout each day. For example, when answering the phone, instead of saying, "Hello", we said, "Praise the Lord!", etc. What this did was to make us mindful to praise the Lord at all times...the good times and the bad.
Heb 13:15 tells us, "By Him therefore let us offer the sacrifice of praise to God continually, that is, the fruit of our lips giving thanks to His name." KJV.
The prophet Habakkuk was concerned enough about the state of his nation to pray about it. In his prayer, he asked God about what was going on. After God answered, though Habakkuk was dismayed at what was taking place, said,
17 Though the fig tree may not blossom,
Nor fruit be on the vines;
Though the labor of the olive may fail,
And the fields yield no food;
Though the flock may be cut off from the fold,
And there be no herd in the stalls--
18 Yet I will rejoice in the LORD,
I will joy in the God of my salvation.
19 The LORD God is my strength;
He will make my feet like deer's feet,
And He will make me walk on my high hills.
Habakkuk 3:17-19 NKJV
...and praised the Lord, anyhow.