Mishneh Torah — Negative Mitzvot מצוות לא תעשה, Chapter 40
The full Hebrew text of Mishneh Torah, Negative Mitzvot, Chapter 40, with English translation by Maimonides (Rambam).
שלא יעדה איש עדי אישה, שנאמר "ולא ילבש גבר שמלת אישה" (דברים כב,ה), מפני שזה היה מנהג עובדי עבודה זרה וכן מפורש בספרי עבודתה.
For a man not to wear articles appropriate for women, as [Deuteronomy 22:5] states: "A man should not wear a woman's clothing." [This prohibition was instituted] because this is an idolatrous custom. Explicit statements to this effect are found in the texts describing their worship.