"Ibn 'Umar said: The Prophet ﷺ entered the Masjid of Quba' to pray there, then some men came in and greeted him with Salam. I asked Suhaib, who was with him: 'What did the Messenger of Allah ﷺ do when he was greeted?' He said: 'He used to gesture with his hand.'"
ابْنُ عُمَرَ دَخَلَ النَّبِيُّ ﷺ مَسْجِدَ قُبَاءَ لِيُصَلِّيَ فِيهِ فَدَخَلَ عَلَيْهِ رِجَالٌ يُسَلِّمُونَ عَلَيْهِ فَسَأَلْتُ صُهَيْبًا وَكَانَ مَعَهُ كَيْفَ كَانَ النَّبِيُّ ﷺ يَصْنَعُ إِذَا سُلِّمَ عَلَيْهِ قَالَ كَانَ يُشِيرُ بِيَدِهِ