Be cautious not to see females’ forms, also not with them together speaking. If with those speaking, with the right mind think, “I, as a Śramaṇa, abiding in this defiled world, should be like a lotus flower, not by mud defiled.” Think of those old to be like your mothers, those older to be like your older sisters, those younger to be like your younger sisters, and those young to be like your children. Give rise to the mind to deliver and liberate them, to extinguish evil thoughts.
— Śākyamuni Buddha
(Sūtra Of 42 Sections: 29th Section)