All perfect praise be to Allaah, The Lord of the worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and messenger.
The washing and offering of prayer were misplaced as he was still alive. Therefore, it is obligatory to perform them when the death is realized.
We draw attention that it is compulsory to make sure that the individual is really dead before considering him deceased, especially if he drowned or is afflicted with epilepsy.
Allaah Knows best.