Sunan an-Nasa'i, Hadith 1186 ⓘ
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."
أَخْبَرَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، قَالَ حَدَّثَنَا اللَّيْثُ، عَنْ بُكَيْرٍ، عَنْ نَابِلٍ، صَاحِبِ الْعَبَاءِ عَنِ ابْنِ عُمَرَ، عَنْ صُهَيْبٍ، صَاحِبِ رَسُولِ اللَّهِ صلى الله عليه وسلم قَالَ مَرَرْتُ عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم وَهُوَ يُصَلِّي فَسَلَّمْتُ عَلَيْهِ فَرَدَّ عَلَىَّ إِشَارَةً وَلاَ أَعْلَمُ إِلاَّ أَنَّهُ قَالَ بِإِصْبَعِهِ .
also referenced under: Book 13, Hadith 8 (In-Book) & Volume 2, Book 13, Hadith 1187 (DarusSalam)