Srimad Bhagavatam Canto 09, Chapter 01, Text 32

SB 9.1.32

tad idam bhagavan aha
 priyayah priya-kamyaya
sthanam yah pravised etat
 sa vai yosid bhaved iti
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Thereupon, just to please his wife, Lord Siva said, “Any male entering this place shall immediately become a female!”
Srimad Bhagavatam Canto 09, Chapter 01, Text 31
Srimad Bhagavatam Canto 09, Chapter 01, Text 33