Which Sutta Was Ajahn Sujato Referring To?

In this video

Ajahn Sujato said there is a sutta where the Buddha predicted that people would make the world unlivable through excess consumption.

Anyone know the name and number of the sutta?

I guessed it was an allusion to DN26 and AN7.66 but I don’t see in those a link between human activity and environmental decline.
DN26 tells us how society declines and AN7.66 tells us of how heat will turn the works unlivable. But the link between two things is not clear.
Let’s ask bhante @sujato!