Suhayb reported,

He said, "I passed by the Messenger of Allah ﷺ while he was praying, so I greeted him with salam, and he returned the greeting with a gesture." He added, "I do not recall it except that he said he gestured with his finger." This is the wording of Qutayba's narration.

Abu Dawud 925

Sahih

حدثنا يزيد بن خالد بن موهب وقتيبة بن سعيد أن الليث حدثهم عن بكير عن نابل صاحب العباء عن ابن عمر

عن صهيب

أنه قال مررت برسول الله ﷺ وهو يصلي فسلمت عليه فرد إشارة قال ولا أعلمه إلا قال إشارة بأصبعه وهذا لفظ حديث قتيبة

أبو داود 925صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
Returning the greeting during prayer
Numbering
Darussalam 925
Abu Dawud 925