Sunan an-Nasa'i, Volume 2, Book 13, Hadith 1187 (DarusSalam)

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."

أَخْبَرَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، قَالَ حَدَّثَنَا اللَّيْثُ، عَنْ بُكَيْرٍ، عَنْ نَابِلٍ، صَاحِبِ الْعَبَاءِ عَنِ ابْنِ عُمَرَ، عَنْ صُهَيْبٍ، صَاحِبِ رَسُولِ اللَّهِ صلى الله عليه وسلم قَالَ مَرَرْتُ عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم وَهُوَ يُصَلِّي فَسَلَّمْتُ عَلَيْهِ فَرَدَّ عَلَىَّ إِشَارَةً وَلاَ أَعْلَمُ إِلاَّ أَنَّهُ قَالَ بِإِصْبَعِهِ ‏.‏

sunnah.com