ity utsasarja svam deham
iti—thus; utsasarja—gave up; svam—his own; deham—body; nimih—Maharaja Nimi; adhyatma-kovidah—fully conversant with spiritual knowledge; mitra-varunayoh—from the semen of Mitra and Varuna (discharged from seeing the beauty of Urvasi); jajne—was born; urvasyam—through Urvasi, a prostitute of the heavenly kingdom; prapitamahah—Vasistha, who was known as the great-grandfather.
After saying this, Maharaja Nimi, who was expert in the science of spiritual knowledge, gave up his body. Vasistha, the great-grandfather, gave up his body also, but through the semen discharged by Mitra and Varuna when they saw Urvasi, he was born again.
Mitra and Varuna chanced to meet Urvasi, the most beautiful prostitute of the heavenly kingdom, and they became lusty. Because they were great saints, they tried to control their lust, but they could not do so, and thus they discharged semen. This semen was kept carefully in a waterpot, and Vasistha was born from it.
Link to this page: https://prabhupadabooks.com/sb/9/13/6