The origin of debauchery and wealth?

According to legend, in Song Shenzong, Su Shi's good friend Fo Yin wrote a poem about "debauchery and wealth" on the wall of Suoguo Temple:

Four walls of debauchery and wealth, where everyone hides;

Who can jump out of the circle and live to be a hundred years old?

One day, Su Shi visited, Fo Yin was absent, and when he saw it, he made peace with the poem:

Being drunk is a hero with the highest lust;

Ill-gotten wealth is not desirable, and it will disappear when you get angry.

Another day, Wang Anshi accompanied Shen Zongyou to Suoguo Temple, where he saw and wrote a poem.

Wang Anshi:

No wine, no etiquette, colorless road, sparsely populated;

People without wealth don't work hard, and countries without gas have no life.

Shen Zonghe:

Wine contributes to the social health of rites and music, and color education is important;

Wealth and abundant food make the country rich and the people strong.