In «مَرَرْتُ بِزَيْدٍ», «بِـ» is the genitive governor and kasra is the genitive sign.

The Rule of the Muʿrab: Visible and Estimated Case