Aqiqah on Behalf of a Deceased Child
If the child dies after seven days have passed since birth, it is still necessary for the father to perform its aqiqah.
If the child dies before the seventh day arrives, then aqiqah is not obligatory, because the words of the hadith are «يوم السابع», that is, the aqiqah is to be performed on the seventh day, and the seventh day never came for this child, so its aqiqah is not obligatory.