It was narrated from 'Ammar bin Yasir that:He greeted the Messenger of Allah (ﷺ) with the Salam when he was praying, and he returned the greeting
Hadith No. 1188
Sunan an Nasai
Gradings:
Abu Ghuddah:
Sahih Isnaad
Al-Albani:
Sahih Isnaad
Zubair Ali Zai:
Isnaad Sahih