tata urdhvam vanam tad vai
purusa varjayanti hi
vicacara vanad vanam
tatah urdhvam—from that time onward; vanam—forest; tat—that; vai—in particular; purusah—males; varjayanti—do not enter; hi—indeed; sa—Sudyumna in the form of a woman; ca—also; anucara-samyukta—accompanied by his companions; vicacara—walked; vanat vanam—within the forest from one place to another.
Since that time, no male had entered that forest. But now King Sudyumna, having been transformed into a female, began to walk with his associates from one forest to another.
“As a person puts on new garments, giving up old ones, the soul accepts new material bodies, giving up the old and useless ones.”
The body is just like a dress, and here this is proved. Sudyumna and his associates were all male, which means that their souls were covered by male dress, but now they became female, which means that their dress was changed. The soul, however, remains the same. It is said that by modern medical treatment a male can be transformed into a female, and a female into a male. The body, however, has no connection with the soul. The body can be changed, either in this life or the next. Therefore, one who has knowledge of the soul and how the soul transmigrates from one body to another does not pay attention to the body, which is nothing but a covering dress. Panditah sama-darsinah [Bg. 5.18]. Such a person sees the soul, which is part and parcel of the Supreme Lord. Therefore he is a sama-darsi, a learned person.
Link to this page: https://prabhupadabooks.com/sb/9/1/33