The title compound, C(23)H(16)N(2)O(3), exists in a Z configuration with respect to the acyclic C=C bond. The pyridine and phenyl rings are oriented at dihedral angles of 72.97 (4) and 45.05 (4)°, respectively, with respect to the almost planar indoline ring system [maximum deviation 0.080 (1) Å]. The pyridine and phenyl rings are oriented almost perpendicular to each other [dihedral angle 88.93 (5)°]. In the crystal, mol-ecules are inter-connected into a three-dimensional framework via inter-molecular C-H⋯O and C-H⋯N hydrogen bonds and weak π-π inter-actions [centroid-centroid distance = 3.681 (1) Å].