Mishkat al-Masabih 991
وَعَنِ ابْنِ عُمَرَ قَالَ: قُلْتُ لِبِلَالٍ: كَيْفَ كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَرُدُّ عَلَيْهِم حِين حانوا يُسَلِّمُونَ عَلَيْهِ وَهُوَ فِي الصَّلَاةِ؟ قَالَ: كَانَ يُشِيرُ بِيَدِهِ. رَوَاهُ التِّرْمِذِيُّ وَفِي رِوَايَةِ النَّسَائِيِّ نَحوه وَعوض بِلَال صُهَيْب
From Ibn ʿUmar, who said: I said to Bilal: "How did the Prophet ﷺ return [the greeting] to them when they greeted him while he was in prayer?" He said: "He used to gesture with his hand." Reported by at-Tirmidhi. In the narration of an-Nasaʾi there is something similar, with Suhayb in place of Bilal.