Finland ranks as "world's happiest country" for 9th year in a row

https://lemmus.org/post/20949702

All five Nordic countries are in the top six

Also among the least religious in the world! Maybe religion isn’t really helping?

In fourth place is Costa Rica

Congratulations to Costa Rica, a surprising mix with a country that is very different than the other countries in the top.

PS:
The reason USA isn’t in the top, is probably that they are so goddam tired of winning.

Generally it‘s probably not a good idea to tie this to a single metric but religion could be a part of it. I would guess a strong social state is the bigger factor however. Perhaps all these things go hand in hand.
All the Nordics and Costa Rica are strong welfare states which lets people live more freely as they know there is a security net to cover your basic needs if things go south.