Is it wrong to thank God?

em

The first two boys have been rescued from the Thai cave, and on Facebook all I see is people commenting how it’s “wrong” to thank god for the work of engineers, how prayer doesn’t work, and some even saying it’s God’s fault for making it rain!

So many people are belittling those who believe in religion and prayer.

My question is, in cases such as these, is it wrong to pray to and thank God?