Dua When the soul is leaving the body

اللَّهُمَّ أَعِنِّي عَلَى غَمَرَاتِ الْمَوْتُ وَسَكَرَاتِ الْمَوْتِ

"O Allah, at this (time) of severity of death help me". (Tirmidhi)

At the time of death turn the face towards the Qibla and the Majlis (gathering) that is present should say the shahada
لَا إِلَهَ إِلَّا اللَّهُ