What is the case of «مَسَاجِدَ» in «مَرَرْتُ بِمَسَاجِدَ»?

Diptote Causes — Ultimate Broken-Plural Patterns