Prayer
Prayer is done until the person’s last breath. Allah said:
أَقِمِ ٱلصَّلَوٰةَ لِدُلُوكِ ٱلشَّمْسِ إِلَىٰ غَسَقِ ٱلَّيْلِ وَقُرْءَانَ ٱلْفَجْرِ ۖ إِنَّ قُرْءَانَ ٱلْفَجْرِ كَانَ مَشْهُودًا
“Establish prayer at the decline of the sun [from its meridian] until the darkness of the night and [also] the Qur’an of dawn. Indeed, the recitation of dawn is ever witnessed.” (Surah Al Isra 17:78)