1318
Śrīmad-Bhāgavatam
[Canto 4, Ch. 28]
Material existence is always full of anxiety. People are always trying to find many ways to mitigate anxiety, but because they are not guided by a real leader, they try to forget material anxiety through drink and sex indulgence. Foolish people do not know that by attempting to escape anxiety by drink and sex, they simply increase their duration of material life. It is not possible to escape material anxiety in this way.
The word  pramadā-saṅga-dūṣitaḥ  indicates that apart from all other contamination, if one simply remains attached to a woman, that single contamination will be sufficient to prolong one's miserable material existence. Consequently, in Vedic civilization one is trained from the beginning to give up attachment for women. The first stage of life is  brahmacārī , the second stage  gṛhastha , the third stage  vānaprastha , and the fourth stage  sannyāsa . All these stages are devised to enable one to detach himself from the association of women.
TEXT 28
तामेव मनसा गृहन् बभूव प्रमदत्तमा । अनन्तरं विदर्भस्य राजसिंहस्य वेश्मनि ॥२८॥
tām eva manasā gṛhṇan babhūva pramadottamā anantaram vidarbhasya rāja-siṁhasya veśmani
tām—her; eva—certainly; manasā—by the mind; gṛhṇan—accepting; babhūva—became; pramadā—woman; uttamā—highly situated; anantaram—after death; vidarbhasya—of Vidarbha; rāja-siṁhasya—of the most powerful king; veśmani—at the house.
TRANSLATION
King Purañjana gave up his body while remembering his wife, and consequently in his next life he became a very beautiful and well-situated woman. He took his next birth as the daughter of King Vidarbha in the very house of the King.
PURPORT
Since King Purañjana thought of his wife at the time of death, he attained the body of a woman in his next birth. This verifies the following verse in  Bhagavad-gītā :