“But godliness with contentment is great gain. For we brought nothing into this world, and it is certain we can carry nothing out. And having food and raiment let us be therewith content. But they that will be rich fall into temptation and a snare, and into many foolish and hurtful lusts, which drown men in destruction and perdition. For the love of money is the root of all evil: which while some coveted after, they have erred from the faith, and pierced themselves through with many sorrows” 1 Timothy 6:6-10.
As you can see from the verses above, godliness with earthly riches does not bring gain but a snare, hurtful lust, destruction and perdition.
Get it right. Godliness with contentment is great gain.