1 Thess. 5:18, In every thing give thanks: for this is the will of God in Christ Jesus concerning you.
Even in bad times? Even for bad things? Absolutely. It is through those times and those circumstances that we grow, mature, and we are purged. It is through these times and circumstances that we draw closer to God, getting to know Him in a more personal way and most importantly, learning to trust Him in everything and for everything.
Lord bless you today.