All perfect praise be to Allaah, The Lord of the worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and messenger.
Some scholars disliked leaving the deceased alone in a house. Among them are some Hanbali scholars like Imaam Al-Buhooti who stated that Imaam Al‘aajorri adopted the opinion that it is not approved to leave the deceased who died in the evening alone. Rather, his family should stay with him.
Ibraaheem An-Nakh‘i said: “Our righteous ancestors did not use to leave the deceased alone, fearing that Satan may play with him.”
However, there are no proofs from the Quran or Sunnah supporting this view.
So, if they chose to remain with him, then they are not obliged to do any particular thing.
Allaah Knows best.