We were in the company of the Messenger of Allah (ﷺ), and he sent me on an errand, and…

Sahih Muslim Book 5 Hadith 47

Sahih Muslim #540 c

The Book of Mosques and Places of Prayer 5:47

Jabir reported:

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.

Chapter: The prohibition of speaking during the prayer, and the abrogation of its former permissibility

Grade: Sahih