The Prophet (ﷺ) drew a few lines and said, "This is (man's) hope, and this is the instant of his death, and while he is in this state (of hope), the nearer line (death) comes to Him."
Sahih al-Bukhari Book 81, Hadith 7