TT #19 · Parshas Tazria · Aliyah 1 · Passuk 3
English: On the eighth day the flesh of his foreskin shall be circumcised.
Chabad.org — Chumash, English translation + Rashi for Vayikra 12:3
Torah Temimah cites Bava Basra 127a.
E-Daf — Bava Basra 127a · Shas.org · Daf Yomi — vowelized Bava Basra 127a
English: Rav Sheizevi teaches that a tumtum later found to be male is not circumcised on the eighth day, because the verses “a woman conceives and bears a male” and “on the eighth day he shall be circumcised” require the child to be identifiable as male from birth.
Textual inference
The eighth-day obligation depends on being identifiable as male from birth.