This is just one passage. I'm sure there are many more.
1 Thessalonians 5:18
ESV - 18 Give thanks in all circumstances; for this is the will of God in Christ Jesus for you.
For follow-up discussion and general commentary on the topic. Comments are sorted chronologically.