Role of al-masjidi in the source example?

Al-Mafʿūl Fīhi: Adverbials of Time and Place