Sahih al-Bukhari, Book 3, Hadith 37 (Bukhari 95)

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.