The error was found when the baby’s parents saw him move en route to the funeral in India.

Source: 

Anger as India doctor mistakenly declares newborn dead