It is narrated from Sayyidah Aishah (may Allah be pleased with her) that she said: "When one of you is in a state of sexual impurity (junub), let him not sleep at all; for he does not know, perhaps his soul will be taken while he is asleep."
It is also narrated from Sayyidah Aishah (may Allah be pleased with her): "When the Messenger of Allah (peace and blessings be upon him) intended to sleep while in a state of sexual impurity, he would perform ablution."
All the narrators of this hadith are thiqat (trustworthy) and reliable.