Sunan Ibn Majah, Book 1, Hadith 138 (Ibn Majah 404)

It was narrated from 'Ali that:

The Messenger of Allah performed ablution and he rinsed his mouth three times, and sniffed water up into his nose three times from one handful.