In مَرَرْتُ بِمُسْلِمَاتٍ, the noun is genitive because it follows بِـ.Noun Case Classes: Type 2 — Sound Feminine Plural