Dua before entering the mosque
Enter with your right leg And then recite this dua: Allahummaf tahli abwaba rahmatik
Dua to be recite when you leave from mosque
Leave with the left leg taking out and than recite this dua: Allahumma inni as-aluka min fadhlika wa-rahmatik