Arthashastra
ततो निशा चराणां सत्त्वानाम् अन्यतमस्य शिरः कपालम् अञ्जनेन पूरयित्वा मृतायाः स्त्रिया योनौ प्रवेश्य दाहयेत् ॥
Wherever one may happen to see the corpse burnt or just being burnt of a Bráhman who kept sacrificial fire (while alive), there one should fast for three nights
english translation
tato nizA carANAM sattvAnAm anyatamasya ziraH kapAlam aJjanena pUrayitvA mRtAyAH striyA yonau pravezya dAhayet ॥
hk transliteration by Sanscript