It is Forbidden to Pass directly in Front of a Worshipper in Prayer
Question :
Is it permissible for those asking for charity for the general good, such as for (the building of) a mosque, or for an individual to pass directly in front of the worshippers while they are praying, or not?
Answer:
It is forbidden to pass directly in front of the worshippers while they are praying, even if it be for collecting charity for Islamic projects, such as the building, repair or furnishing of mosques, nor does the fact that they are undertaking a good deed give them a license to pass in front of the worshippers in prayer, according to the generality of the Hadith of Abu Juhaim, may Allah be pleased with him, who reported from the Prophet that he said:
If the one who passes in front of a worshipper in prayer knew the sin he was committing, he would wait for forty (years), and that would be better for him than passing in front of the worshipper in prayer.
And may peace and blessings be upon our Prophet, Muhammad and upon his family and Companions.
Source:
The Permanent Committee
Fatawa Islamiyah, Vol. 2 Page 169