The Prophet (may Allah's peace and blessings be upon him) urges anyone who wakes up from his sleep to make Istinthar, i.e., blowing water out of the nose after sniffing it, three times because the devil spends the night on the nostril, which is the whole nose.