Śrīmad-Bhāgavatam · Text 9.6.49
Who is speaking and story frame
स कदाचिदुपासीन आत्मापह्नवमात्मन: ।
ददर्श बह्वृचाचार्यो मीनसङ्गसमुत्थितम् ॥ ४९ ॥
sa kadācid upāsīna
ātmāpahnavam ātmanaḥ
dadarśa bahv-ṛcācāryo
mīna-saṅga-samutthitam
Thereafter, one day while Saubhari Muni, who was expert in chanting mantras, was sitting in a secluded place, he thought to himself about the cause of his falldown, which was simply that he had associated himself with the sexual affairs of the fish.
Read Śrīla Prabhupāda's purport on Vedabase.io