It is recommended to head to prayer while being pure and with humility,
based on the saying of the Prophet (may Allah's peace and blessings be
upon him): "When one of you performs ablution and does it well, then
heads to the mosque, he must not intertwine his fingers for he is (virtually)
engaged in prayer." One should say on leaving his house, even for a
purpose other than the prayer: "Bismillāh āmantu billāh i'tasamtu billāh
tawakkaltu 'ala Allāh la hawla wa la quwwata illā billāh. Allāhumma innī
a'ūdhu bika an adilla aw udal, aw azilla aw uzal, aw azhlima aw uzhlam, aw
ajhala aw yujhala 'alayy (In the Name of Allah, I believe in Allah, I seek the
protection of Allah, I put my trust in Allah and there is no strength or power
except with Allah.