He greeted the Messenger of Allah (ﷺ) with the Salam when he was praying, and he returned…

Sunan an-Nasa'i Book 13 Hadith 10

Sunan an-Nasa'i #1188

The Book of Forgetfulness (In Prayer) 13:10

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.

Chapter: Returning the salams with a gesture when praying

Grade: Sahih (Darussalam)