Śrīmad-Bhāgavatam · Text 9.20.36
Who is speaking and story frame
अन्तर्वत्न्यां भ्रातृपत्न्यां मैथुनाय बृहस्पति: ।
प्रवृत्तो वारितो गर्भं शप्त्वा वीर्यमुपासृजत् ॥ ३६ ॥
antarvatnyāṁ bhrātṛ-patnyāṁ
maithunāya bṛhaspatiḥ
pravṛtto vārito garbhaṁ
śaptvā vīryam upāsṛjat
When the demigod named Bṛhaspati was attracted by his brother’s wife, Mamatā, who at that time was pregnant, he desired to have sexual relations with her. The son within her womb forbade this, but Bṛhaspati cursed him and forcibly discharged semen into the womb of Mamatā.
Read Śrīla Prabhupāda's purport on Vedabase.io