According to the law of reflection, angle of incident ray = angle of reflected ray.
The reflected ray should make equal angle as the angle of incident ray, with the normal to AB. In this case, angle between NO and OM is corresponding to the angle between OM and OP. Therefore, ray OP is the reflected ray.