Sorry, but there’s a very long history of people conflating wealth with god’s blessing (and therefore righteousness, moral integrity and generally being “good”).
Since at least as long as the book of Job (early Bronze Age?) as the sudden reverses in Job’s fortunes were seen as displeasure etc.
(The book of job is a Bronze Age attempt by a narcissist to explain the problem of evil. Basically? “You can’t possibly understand me.”)