Parashas Mishpatim · Passuk 23:17
Chabad.org — English translation + Rashi
Torah Temimah points to Chagigah 3a (verified).
Sefaria — Chagigah 3aSefaria — Chagigah 80aE-Daf — Chagigah 3a
English: One who can speak but cannot hear, and one who can hear but cannot speak, is exempt from appearing; this is derived by comparison with Hakhel.
On the daf / in context: See the cited source for the full section.
Derash on the verse.