“in everything give thanks; for this is the will of God in Christ Jesus for you.” (1 Thessalonians 5:18)
God does not ask us to be thankful for everything, but He calls us to be thankful in everything.
Southern Adventist University, "The Power of Gratitude" (2021). The Main Thing Devotional. 78.