Hadith 25

Riyad as-Salihin

Book 5: The Book of Greetings

Chapter 138

Greeting Non-Muslims and the Prohibition of Taking Initiative in Doing So

باب تحريم ابتدائنا الكافر بالسلام وكيفية الرد عليهم واستحباب السلام على أهل مجلس فيهم مسلمون وكفار

Riyad as-Salihin 868
وعن أسامة رضي الله عنه أن النبي صلى الله عليه وسلم مر على مجلس فيه أخلاط من المسلمين والمشركين -عبدة الأوثان واليهود- فسلم عليهم النبي صلى الله عليه وسلم‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏
Usamah bin Zaid (May Allah be pleased with him) reported:

The Prophet (ﷺ) passed by a mixed company of people which included Muslims, polytheists and Jews, and he gave them the greeting (i.e., saying As- Salamu 'Alaikum).[Al-Bukhari and Muslim].