SN 5.2 Somā Sutta: Sister Somā

While the Bikkhuni Somā meditates, Mara appears and says to her that women can’t get enlightened.

She replies:

“One to whom it might occur ‘I am a woman’ or ‘I am a man’ or ‘I am anything at all’ is fit for Mara to address.”

Mara realises she recognises him and sad and dejected, he departs.

Full text