Sayyiduna Abu Huraira (may Allah be pleased with him) narrates this statement of the Noble Prophet (peace and blessings be upon him): When a person enters the mosque, he should send blessings upon the Noble Prophet (peace and blessings be upon him) and recite this: "O Allah! Open the doors of Your mercy for me." And when that person leaves the mosque, he should send blessings upon the Noble Prophet (peace and blessings be upon him) and recite this phrase: "O Allah! Protect me from the accursed devil."