This table from Gallup shows that national-level religiosity drops off with increasing per capita income. Jesus was aware of this pattern 2,000 years ago: "Blessed are you poor, for yours is the kingdom of God." (Luke 6:20)
"Man is an enigma. This enigma must be solved, and if you spend all your life at it, don't say you have wasted your time; I occupy myself with this enigma because I wish to be a man."