Parshas Mishpatim · Passuk 23:17
Chabad.org — English translation + Rashi
Torah Temimah points to חגיגה ד' א׳ (verified).
Sefaria — Exodus 23:17
Sefaria — חגיגה ד' א׳
English: The Rabbis taught: “Male” excludes women; “your males” excludes a tumtum and an androgynous.
On the daf / in context: See the cited source for the full section.
Derash on the verse — exclusion of certain categories from the obligation of re’iyah.
The derashah of Torah Temimah on the words כל זכורך establishes the classical source and the operative rule derived from it.