Whatever happens, keep thanking God because of Jesus Christ. This is what God wants you to do.
1 Thessalonians 5:18 (CEV)
The Apostle Paul you should give thanks always and in everything. This means that no matter what is going on in your life—good or bad—continue to give thanks because God works all things together for good (Romans 8:28). Even if things are not going well, you can be thankful because God is good and His love endures forever.
God desires that you have a heart of gratitude towards Him. He doesn't just want you to be grateful for His blessings; He wants you to be grateful all of the time. Gratitude defines your relationship with God. The more you understand how much God loves you, the less you fear life and the future. If you can learn to thank God for today, you will be able to trust Him for tomorrow much more confidently.
Despite his trials and imprisonment, Paul gives thanks to God and places his life in God's hands, knowing that whatever happens to him will be made right by God because his life is in Christ. This is why Paul could say with complete certainty that nothing can separate you and me from God's love, which is in Christ Jesus our Lord. (Romans 8:39) In other words, stop limiting God because nothing can ever separate God from you or you from God's love.
Don't think for a second that God loves you less because you're going through a difficult time. Rather, cultivate the habit of continually thanking God for everything, every day, everywhere. Worrying is what the rest of the world does, but sons and daughters joyfully give thanks to God the Father.
Gratitude is the basis for your worship of God.
When you are truly grateful and appreciative for who God is and all that He does, worship becomes the true essence and expression of a genuine relationship that is increasingly secured in God's love for you.