Śrīmad-Bhāgavatam · Text 9.19.4
Who is speaking and story frame
तस्या उद्धरणोपायं बस्त: कामी विचिन्तयन् ।
व्यधत्त तीर्थमुद्धृत्य विषाणाग्रेण रोधसी ॥ ४ ॥
tasyā uddharaṇopāyaṁ
bastaḥ kāmī vicintayan
vyadhatta tīrtham uddhṛtya
viṣāṇāgreṇa rodhasī
After planning how to get the she-goat out of the well, the lusty he-goat dug up the earth on the well’s edge with the point of his horns in such a way that she was able to come out very easily.
Read Śrīla Prabhupāda's purport on Vedabase.io