Assalamun alaikum

I was reading sumtime awhile back, and the shaytan comes to a person before his death and tries to mislead him one last tym, and I was wondering once a person dies, does he/she no what they've died, would they no that the shaytan isnt tryin 2 mislead them into thinkin they've died