Anas (May Allah be pleased with him) reported the Prophet (ﷺ) used to repeat his words thrice so that the meaning thereof would be fully understood, and whenever he came upon a gathering of people, he would greet them. He would repeat Salam thrice.[Al- Bukhari].
App reference: Book 6, Hadith 9
Arabic/English book reference: Book 6, Hadith 853