Śrīmad-Bhāgavatam · Text 9.16.31
Who is speaking and story frame
यो वै हरिश्चन्द्रमखे विक्रीत: पुरुष: पशु: ।
स्तुत्वा देवान् प्रजेशादीन् मुमुचे पाशबन्धनात् ॥ ३१ ॥
yo vai hariścandra-makhe
vikrītaḥ puruṣaḥ paśuḥ
stutvā devān prajeśādīn
mumuce pāśa-bandhanāt
Śunaḥśepha’s father sold Śunaḥśepha to be sacrificed as a man-animal in the yajña of King Hariścandra. When Śunaḥśepha was brought into the sacrificial arena, he prayed to the demigods for release and was released by their mercy.
Read Śrīla Prabhupāda's purport on Vedabase.io