Such a verse could be in several suttas.
The verse “And so, being myself liable to be reborn, understanding the drawbacks in being liable to be reborn, I sought that which is free of rebirth, the supreme sanctuary from the yoke, extinguishment—and I found it. Being myself liable to grow old, fall sick, die, sorrow, and become corrupted, understanding the drawbacks in these things, I sought that which is free of old age, sickness, death, sorrow, and corruption, the supreme sanctuary from the yoke, extinguishment—and I found it ” is in the “Pāsarāsi Sutta (MN 26).”
1 user thanked author for this post.