The Book of Prayers (Kitab Al-Salat)

Muslim :: Book 4 : Hadith 1096

Abdullah (b. Masu'd) reported: We used to greet the Messenger of Allah (may peace be upon him) 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.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star