It is narrated from Sayyiduna Abu Humayd and Abu Usaid that the Prophet (peace be upon him) said: When any one of you enters the mosque, he should say: "O Allah, open for me the doors of Your mercy," and when he leaves, he should say: "O Allah, I ask You for Your bounty."