Then the bodhisattva Drdhamati asked the devaputra Gopaka:
Through what good-rooted action did you change your female body?
Gopaka: Kulaputra, those who are pledged to the Great Vehicle do not see any difference between man and woman. Why? Because the omniscient thought is not found in the triple world and because [notions] of man and woman are wrought by discrimination. You ask me, O friend, through what good actions I changed my female body; well, it is because in days gone by I served the Bodhisattva [Sakyamuni] with a mind free of hypocrisy
Drdhamati: How did you 'serve' him?
Gopaka: I served the Bodhisattva as the Lord.
Drdhamati: How did you serve him 'with a mind free of hypocrisy'?
Gopaka: I conformed my bodily action to my voice, and I conformed my vocal action to my mind: this is, for a woman, a mind free of hypocrisy.
Drdhamati: How did you change your female body?
Gopaka: In conformity with fulfillment.
Drdhamati: How did you 'fulfill'?
Gopaka: In conformity with changing.
Drdhamati: O devaputra, what is the meaning of that word?
Gopaka: Kulaputra, dharmas do not consist of either 'fulfillment'
or 'changing'. All dharmas are of a single flavour, that is, the flavour of the fundamental element. It is in conformity with my aspiration that I had a female body and, if now my body is that of a man, I have not for all that destroyed or abandoned the signs of a female body. That is why, O Kulaputra, it must be
understood that [concepts] of man and woman are perverse views, and that all dharmas as well are perverse views: they are absolutely free of duality
- - The Śūraṅgama Samādhi Sūtra
This view of gender is refreshing to see in a Mahāyāna sūtra, as there are quite a bit of them that contain sexist remarks (most of them probably inserted at a later date). It's important to note that this is a sort of sibling sūtra to the Vimalakīrti Nirdeśa, which contains the infamous encounter between Śāriputra and a goddess.