The burst of energy before death is known as terminal lucidity.
Terminal lucidity refers to the rush of energy that occurs just before death. It is a burst of energy caused by a sudden hormone increase that temporarily raises heart rate and blood pressure, giving energy to the dying individual.
Terminal lucidity can occur days, hours, or minutes before death, often giving the families of the terminally ill the false hope that the person will get better.