Reference for Ketubot 30:5
גופא מצא בה תינוק מושלך אם רוב עובדי כוכבים עובד כוכבים אם רוב ישראל ישראל מחצה על מחצה ישראל אמר רב לא שנו אלא להחיותו אבל ליוחסין לא ושמואל אמר לפקח עליו את הגל
The above text said: If one found in it an abandoned child — if the majority were non-Jews [the child is] a non-Jew, if the majority are Jews [the child is] a Jew, half and half, [the child is] a Jew. And Rav said: They have taught this only with regard to sustaining it, but not with regard to lineage. And Shmuel said: [They have taught this only] with regard to removing stones from on top of it.
Explore reference for Ketubot 30:5. In-depth commentary and analysis from classical Jewish sources.