Narrated Anas:
Whenever the Prophet spoke a sentence (said a thing), he used to repeat it thrice so that the people could understand it properly from him and whenever he asked permission to enter, (he knocked the door) thrice with greeting.
Sahih Bukhari, Volume 1, Book3, Number 95