كان على وشك أن تخرج.

English Translation

He was about to go out.

Isn’t “تخرج” feminine? Thus, “She was about to go out”?