महायश: highly renowned, राजपुत्र prince, पुरा in ancient times, स: he, अहल्यासहित: in the company of Ahalya, अनेकान् several, वर्षपूगान् series of years, इह here, तप: austerities, अतिष्ठत् practised.
O Highly renowned prince it was here in ancient times that Gautama in the company of Ahalya practised austerities for several years.