This study investigates the magnetohydrodynamic boundary layer flow of an incompressible viscous fluid over a nonlinear stretching sheet using the implicit finite difference Keller box method. The results suggest that increasing the magnetic parameter and a non-dimensional parameter significantly reduces the fluid velocity, with a greater impact attributed to the magnetic parameter. The findings demonstrate the Keller box method's effectiveness in numerically analyzing MHD viscous flow.