Sayyiduna Abu Huraira (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) said: "When a person comes to a gathering, he should greet (with Salam), and when he gets up (to leave), he should greet (with Salam), because the first is not more entitled than the second."