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"
SahihSahihSahihBook 13 · Hadith 8