In «مَرَرْتُ بِأَحْمَدَ», the noun is genitive despite its final fatḥah.Restoring Declension: Indefinite Names, Al- and Iḍāfah