On First settling the debts of the deceased and making haste to prepare him for burial

Riyad as-Salihin (The Meadows of the Righteous)

by Imam Nawawi

159. Chapter: On First settling the debts of the deceased and making haste to prepare him for burial unless he died suddenly, in which case he is left until one is sure of death

943. Abu Hurayra reported that the Prophet, may Allah bless him and grant him peace, said, "The soul of the believer is held back because of a debt until it is paid for him." [at-Tirmidhi]

944. Husayn ibn Wahwah reported that Talha ibn al-Bara' became ill and the Prophet, may Allah bless him and grant him peace, came to visit him and he said, "I think that Talha is going die, so inform me of it and bring him quickly. The corpse of a Muslim should not be kept among his family." [Abu Dawud]