The Buddha’s supposed final words are given in many forms in different places. But this version, really cuts to the heart of his teachings:
“Impermanence is relentless, decay inevitable. I have taught you all that is needed. Work diligently for your own salvation. Mindful you should dwell, clearly comprehending. This I exhort you.”