Abdullah bin Umar reported,

The Messenger of Allah ﷺ came to the Quba mosque to pray there, and some men from the Ansar came to greet him with salaam. I asked Suhayb, who was with him, how the Messenger of Allah ﷺ returned their greeting. He replied, "He would gesture with his hand."

Ibn Majah 1017

Sahih

حدثنا علي بن محمد الطنافسي قال حدثنا سفيان بن عيينة عن زيد بن أسلم

عن عبد الله بن عمر قال

أتى رسول الله ﷺ مسجد قباء يصلي فيه فجاءت رجال من الأنصار يسلمون عليه فسألت صهيبا وكان معه كيف كان رسول الله ﷺ يرد عليهم قال كان يشير بيده

ابن ماجه 1017صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
How one who is praying should respond when greeted with salam
Numbering
Darussalam 1017
Ibn Majah 1017