Narrated Abu Hurairah: The Prophet, peace be upon him, said, “If anyone of you rises from sleep and performs the ablution, he should wash his nose by putting water in it and then blowing it out thrice. [This is] because Satan has stayed in the upper part of his nose all the night.”
[Some scholars say that Satan actually stays in the upper part of one’s nose, though we cannot perceive it. Others believe that it should not be taken literally. During sleep at night filth collects inside the nose, which is ‘evil’. The Prophet, peace be upon him, meant to advise that it should be blown out. In either case, it is agreed that we should wash the nose by putting water in it and then blowing it out thrice.]
[4: 516- O.B. Sahih Al-Bukhari)