Abu Sa'id Khudri (RAA) narrated that the Messenger of Allah (ﷺ) said:
"The (legal) slaughtering of the fetus is included when its mother is slaughtered." Related by Ahmad and Ibn Hibban graded it as Sahih. (DE)
English reference (DE): Book 12, Hadith 1383 (DE)
Arabic reference (DE): Book 12, Hadith 1343 (DE)