Verse 24

इत्यसौ ववृधे तस्मिन्राज्ये सकलशासने ।यज्ञं प्रति बभूवाथ मतिरस्य कदाचन

In plain words

Thus he flourished in that realm, ruling over all; and then, at a certain time, his mind turned toward performing a yajña.