The notion you have in mind may be related to "prosperity theology," according to which God rewards faith with increasing material success and inflicts poverty as a punishment (or an inherited curse) for wrongdoing. Viewed without sophistication (or sophistry), this explanation for economic inequality would seem to make wealth a sign of moral virtue and poverty a sign of depravity.
"Prosperity theology," in turn, seems to have something in common with "economic Calvinism," the notion that God's providence flows to those lead their lives properly (by obeying God, working hard, and avoiding frivolous luxuries), so that prosperity may become a sign of God's favor—assuming that the prosperous individual also upholds the other tenets of the religion.
The somewhat awkward theoretical relationship between religious or ethical virtue and economic affluence has been a subject of sociological inquiry at least since Max Weber's The Protestant Ethic and the Spirit of Capitalism (1905). The emergence of a religious rationale that equates the two is especially interesting because, during the first 1500 years of Christianity, the orthodox view was certainly not that dedication to acquiring wealth represented as a reliable path to virtue.