Mishkat al-Masabih 1013
وَعَنْ نَافِعٍ قَالَ: إِنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ مَرَّ عَلَى رَجُلٍ وَهُوَ يُصَلِّي فَسَلَّمَ عَلَيْهِ فَرَدَّ الرَّجُلُ كَلَامًا فَرَجَعَ إِلَيْهِ عَبْدُ اللَّهِ بْنُ عُمَرَ فَقَالَ لَهُ: إِذَا سُلِّمَ عَلَى أَحَدِكُمْ وَهُوَ يُصَلِّي فَلَا يَتَكَلَّمْ وَلْيُشِرْ بِيَدِهِ. رَوَاهُ مَالك
From Nafiʿ, who said: ʿAbdullah ibn ʿUmar passed by a man who was praying and greeted him with salam, and the man replied with speech. ʿAbdullah ibn ʿUmar went back to him and said to him: "When one of you is greeted with salam while he is praying, let him not speak, but let him gesture with his hand." Reported by Malik.