On one occasion the Blessed One was dwelling at Sāvatthī in Jeta’s Grove, Anāthapiṇḍika’s Park. Then King Pasenadi of Kosala approached the Blessed One, paid homage to him, and sat down to one side. Now on that occasion Queen Mallikā had just died. Then a man approached King Pasendi and whispered in his ear: “Sire, Queen Mallikā has just died.” When this was said, King Pasenadi was pained and saddened, and he sat there with slumping shoulders, facing downward, glum, and speechless.
Then the Blessed One, having known the king’s condition, said to him:
“Great king, there are these five situations that are unobtainable by an ascetic or a brahmin, by a deva, Māra, or Brahmā, or by anyone in the world.”
The rest of this sutta is identical with 5:48, including the verses.