مَرَرْتُ بِمَسَاجِدَ — “I passed by mosques.” مَسَاجِدَ is a diptote with genitive fatḥah because it has neither al- nor iḍāfah.
مَرَرْتُ بِالْمَسَاجِدِ — “I passed by the mosques.” With al-, the noun takes genitive kasrah.
The preposition is unchanged; the added article accounts for the ending.
| Word | Meaning |
|---|---|
| بِمَسَاجِدَ | Without al-, genitive fatḥah |
| بِالْمَسَاجِدِ | With al-, genitive kasrah |