Parshas Shemos · Passuk 2:3
Chabad.org — English translation + Rashi
Torah Temimah points to Sotah 12a (verified).
English: “She coated it with mortar and pitch” — the mortar was inside and the pitch outside, so that the righteous child would not smell the bad odor.
In context: See the cited source for the full section.
Category D — Conceptual / logical / legal / theological / ethical inference.
Method — ethical inference. The coating was arranged so that the righteous child would not be exposed to the pitch's odor.
Chazal note that the mortar was placed inside and the pitch outside so the righteous child would not be exposed to the bad smell of pitch.