Śrīmad-Bhāgavatam · Text 9.19.3
Who is speaking and story frame
बस्त एको वने कश्चिद् विचिन्वन् प्रियमात्मन: ।
ददर्श कूपे पतितां स्वकर्मवशगामजाम् ॥ ३ ॥
basta eko vane kaścid
vicinvan priyam ātmanaḥ
dadarśa kūpe patitāṁ
sva-karma-vaśagām ajām
While wandering in the forest, eating to satisfy his senses, a he-goat by chance approached a well, in which he saw a she-goat standing helplessly, having fallen into it by the influence of the results of fruitive activities.
Read Śrīla Prabhupāda's purport on Vedabase.io