It was narrated that ‘Abdul Malik bin Saeed said: “I heard Abu Humaid and Abu Usaid say: ‘The Messenger of Allah صلی اللہ علیہ وآلہ وسلم said: “When any one of you enters the Masjid, let him say: (Allah, open to me the gates of Your mercy). And when he leaves let him say: Allahumma inni as’aluka min fadlik (Allah, I ask You of Your bounty).” (Sahih)