Upon leaving the mosque

Leave with your left foot first. [1] Then say:

بِسْمِ اللّٰهِ وَالصَّلَاةُ وَالسَّلَامُ عَلَى رَسُوْلِ اللّٰهِ، اَللّٰهُمَّ إِنِّيْ أَسْأَلُكَ مِنْ فَضْلِكَ، اَللّٰهُمَّ اعْصِمْنِيْ مِنَ الشَّيْطَانِ الرَّجِيْمِ

In the Name of Allah, and peace and blessings be upon the Messenger of Allah. O Allah, I ask for Your favor, O Allah, protect me from Satan the outcast.

Bismillaahi wassalaatu wassalaamu 'alaa Rasoolillaahi, Allaahumma 'innee 'as'aluka min fadhlika, Allaahumma'simnee minash-Shaytaanir-rajeem.