Translation
(79) Asking Permission
كتاب الاستئذان
(13) Chapter: To greet and ask permission thrice
(13) باب التَّسْلِيمِ وَالاِسْتِئْذَانِ ثَلاَثًا
Sahih al-Bukhari 6244 

Narrated Anas:

Whenever Allah's Messenger (ﷺ) greeted somebody, he used to greet him three times, and if he spoke a sentence, he used to repeat it thrice.

حَدَّثَنَا إِسْحَاقُ، أَخْبَرَنَا عَبْدُ الصَّمَدِ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ الْمُثَنَّى، حَدَّثَنَا ثُمَامَةُ بْنُ عَبْدِ اللَّهِ، عَنْ أَنَسٍ ـ رضى الله عنه أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ إِذَا سَلَّمَ سَلَّمَ ثَلاَثًا، وَإِذَا تَكَلَّمَ بِكَلِمَةٍ أَعَادَهَا ثَلاَثًا‏.‏
Reference : Sahih al-Bukhari 6244
In-book reference : Book 79, Hadith 18
USC-MSA web (English) reference : Vol. 8, Book 74, Hadith 261
  (deprecated numbering scheme)