Sahih Muslim, Book 3, Hadith 24 (Muslim 698)

Ibn 'Umar reported:

Umar said: Is one amongst us permitted to sleep in a state of impurity (i. e. after having sexual intercourse)? He (the Holy Prophet) said: Yes, after performing ablution.