مسائل المنتخبه (Articles Of Islamic Acts) - الخوئي، السيد أبوالقاسم - الصفحة ١٤٢ - WAHSHAT PRAYERS (Prayers to be offered in connection with fear caused by loneliness in the grave of the dead person)
(v) When the dead body of a Muslim has been buried at a place which is
against his status. For example when it has been buried in the graveyard
of unbelievers or at a dunghill.
(vi) When the grave is opened for a legal purpose which is more
important. For example, when it is proposed to take out a living child
from the womb of a woman who has been buried.
(vii) When it is feared that a wild beast would tear up the corpse or it will be carried away by flood or exhumed by the enemy.
(viii) When it is proposed to bury a part of the body of the corpse
which was not buried with it previously. However, the obligatory
precaution is that, the part should be placed in the grave in such a way
that the body of the buried person is not seen.
(ix) When the dead body is proposed to be buried at sacred places like
Najaf, Karbala al-Mualla or Mashhad al-Muqaddas and especially if the
dead person had made a will in this regard.