Sahih Muslim, Book 2, Hadith 31 (Muslim 561)

Abu Huraira reported:

The Apostle of Allah (ﷺ) said. When any one of you awakes up from sleep and performs ablution, he must clean his nose three times, for the devil spends the night in the interior of his nose.