جَاءَنِي الْعَصَا is the book’s wording. الْعَصَا is grammatically non-natural feminine (an inanimate noun).
Classical Arabic permits a masculine verb with such a feminine subject in relevant contexts; here the object element نِي also separates the verb from its subject.
Important: This agreement choice does not change the noun’s function as nominative subject with estimated ḍamma. This note is supplementary explanation, not extra book text.