Shiva Purana
ततस्मृतिं लभेज्जीवस्संपूर्णेऽस्मिञ्शरीरके ॥ सुखं दुःखं विजानाति निद्रास्वप्नं पुराकृतम् ॥ २५ ॥
Then the soul complete in this body recollects all the pleasures and sorrows and every thing done by it formerly as if in a dream.
english translation
tatasmRtiM labhejjIvassaMpUrNe'smiJzarIrake ॥ sukhaM duHkhaM vijAnAti nidrAsvapnaM purAkRtam ॥ 25 ॥
hk transliteration by Sanscript