Sahih Bukhari Volume 004, Book 054, Hadith Number 516.

Narated By Abu Huraira : The Prophet said, "If anyone of you rouses from sleep and performs the ablution, he should wash his nose by putting water in it and then blowing it out thrice, because Satan has stayed in the upper part of his nose all the night."