The Prophet (peace and blessings be upon him) said: "Nothing prevented me from returning your (greeting of) salam except that I was praying."