Sunan an-Nasa'i, Book 13, Hadith 8 (Nasa'i 1188)

It was narrated that Suhaib, the Companion of the Messenger of Allah (ﷺ) said:

"I passed by the Messenger of Allah (ﷺ) when he was praying, and greeted him with Salam. He returned my greeting with a gesture, or maybe it was just with his finger."