Sayyiduna Abu Hurayrah (may Allah be pleased with him) said: When someone greets you while you are praying, return his greeting.