This hadith has been reported by A'mash with the same chain of transmitters.
Sahih Muslim Book 5, Hadith 42
← Previous Hadith
We used to greet the Messenger of Allah (ﷺ) while he was engaged in prayer and he would respond to our greeting. But when we returned from the Negus we greeted him and he did not respond to us; so we said: Messenger of Allah. we used to greet you when you were engaged in prayer and you would respond to us. He replied: Prayer demands whole attention.
Sahih Muslim Book 5, Hadith 41 Next Hadith → We used to talk while engaged in prayer and a person talked with a companion on his side in prayer till (this verse) was revealed:" And stand before Allah in devout obedience" (ii, 238) and we were commanded to observe silence (in prayer) and were forbidden to speak.
Sahih Muslim Book 5, Hadith 43
Sahih Muslim Book 5, Hadith 41 Next Hadith → We used to talk while engaged in prayer and a person talked with a companion on his side in prayer till (this verse) was revealed:" And stand before Allah in devout obedience" (ii, 238) and we were commanded to observe silence (in prayer) and were forbidden to speak.
Sahih Muslim Book 5, Hadith 43