In مَرَرْتُ بِزَيْدٍ وَظَبْيٍ, ظَبْيٍ is genitive because it is coordinated with زَيْدٍ.Noun Case Classes: Type 1 (Ḍamma, Fatḥa, Kasra)