臨終

Verb

 * 1) to be approaching one's end; to have one foot in the grave; to be dying from illness

Noun

 * 1) one's deathbed, dying moment, dying breath

Usage notes
This is often used with the honorific prefix as.