Mishkat al-Masabih 989
عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ قَالَ: كُنَّا نُسَلِّمُ عَلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَهُوَ فِي الصَّلَاةِ قَبْلَ أَنْ نَأْتِيَ أَرْضَ الْحَبَشَةِ فَيَرُدُّ عَلَيْنَا فَلَمَّا رَجَعْنَا مِنْ أَرْضِ الْحَبَشَةِ أَتَيْتُهُ فَوَجَدْتُهُ يُصَلِّي فَسَلَّمْتُ عَلَيْهِ فَلَمْ يَرُدَّ عَلَيَّ حَتَّى إِذَا قَضَى صَلَاتَهُ قَالَ: «إِنَّ اللَّهَ يُحْدِثُ مِنْ أَمْرِهِ مَا يَشَاءُ ن وَإِن مِمَّا أحدث أَن لَا تتكلموا فِي الصَّلَاة» . فَرد عَليّ السَّلَام
From ʿAbdullah ibn Masʿud, who said: We used to greet the Prophet ﷺ with salam while he was in prayer before we went to the land of Abyssinia, and he would return it to us. When we returned from the land of Abyssinia, I came to him and found him praying. I greeted him, and he did not return it to me until, when he had finished his prayer, he said: "Allah brings about of His command whatever He wills, and among what He has brought about is that you do not speak in prayer." Then he returned my salam.