This is a genuine quote from the Buddhist scriptures. It’s from the Kamma Sutta
“Over there are the roots of trees; over there, empty dwellings. Practice jhana [meditation], monks. Don’t be heedless. Don’t later fall into regret. This is our message to you.”
The Buddha