It is said that before going to sleep we must take care of 4 things; resolve any conflicts we have, make sure all of our obligations to Allah are complete, ask forgiveness to Allah for the sins, make basic arrangements in the case we do not wake up in the morning.