SN 1.38 Sakalika Sutta: The Stone Sliver

The Buddha gets a stone splinter in his foot and is in great pain. He is praised by many devatas for maintaining full mindfulness and enduring the pain without becoming perturbed.

Full text