Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:14788ʿAbd al-Ṣamad And Kathīr b. Hishām > Hishām > Abū al-Zubayr > Jābir

[Machine] The Messenger of Allah ﷺ sent me on an errand, so I returned to him while he was on his riding animal. I greeted him, but he did not respond to me. I saw him bowing and prostrating, so I backed away from him. Then he asked me, "What did you do regarding your need?" I replied, "I did such and such." He said to me, "Verily, the only reason why I did not respond to you is because I was in prayer."  

أحمد:١٤٧٨٨حَدَّثَنَا عَبْدُ الصَّمَدِ وَكَثِيرُ بْنُ هِشَامٍ قَالَا حَدَّثَنَا هِشَامٌ عَنْ أَبِي الزُّبَيْرِ عَنْ جَابِرٍ قَالَ

بَعَثَنِي رَسُولُ اللهِ ﷺ فِي حَاجَةٍ لَهُ فَرَجَعْتُإِلَيْهِ وَهُوَ عَلَى رَاحِلَتِهِ فَسَلَّمْتُ عَلَيْهِ فَلَمْ يَرُدَّ عَلَيَّ وَرَأَيْتُهُ يَرْكَعُ وَيَسْجُدُ فَتَنَحَّيْتُ عَنْهُ ثُمَّ قَالَ لِي مَا صَنَعْتَ فِي حَاجَتِكَ؟ فَقُلْتُ صَنَعْتُ كَذَا وَكَذَا فَقَالَ أَمَا إِنَّهُ لَمْ يَمْنَعْنِي أَنْ أَرُدَّ عَلَيْكَ إِلَّا أَنِّي كُنْتُ أُصَلِّي  


See similar narrations below:

Collected by Muslim
muslim:540cAbū Kāmil al-Jaḥdarī > Ḥammād b. Zayd > Kathīr > ʿAṭāʾ > Jābir

We were in the company of the Messenger of Allah ﷺ, and he sent me on an errand, and when I came back (I saw him) saying prayer on his ride and his face was not turned towards Qibla. I greeted him but he did not respond to me. As he completed the prayer, he said: Nothing prevented me from responding to your greeting but the fact that I was praying.  

مسلم:٥٤٠cحَدَّثَنَا أَبُو كَامِلٍ الْجَحْدَرِيُّ حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ عَنْ كَثِيرٍ عَنْ عَطَاءٍ عَنْ جَابِرٍ قَالَ

كُنَّا مَعَ النَّبِيِّ ﷺ فَبَعَثَنِي فِي حَاجَةٍ فَرَجَعْتُ وَهُوَ يُصَلِّي عَلَى رَاحِلَتِهِ وَوَجْهُهُ عَلَى غَيْرِ الْقِبْلَةِ فَسَلَّمْتُ عَلَيْهِ فَلَمْ يَرُدَّ عَلَىَّ فَلَمَّا انْصَرَفَ قَالَ إِنَّهُ لَمْ يَمْنَعْنِي أَنْ أَرُدَّ عَلَيْكَ إِلاَّ أَنِّي كُنْتُ أُصَلِّي