A laminar, two dimensional, steady boundary layer Newtonian conducting fluid flow passes over a permeable shrinking sheet in the presence of a uniform magnetic field is investigated. The governing equations have converted to ordinary nonlinear differential equations (ODE) by using appropriate similarity transformations. The main idea is to transform ODE with infinite boundary condition into other sets of variables in a way that infinite boundary condition becomes a finite boundary condition. The effects of physical parameters affecting the velocity and temperature are shown. The results show that with increasing the magnetic and suction parameters, the normal velocity component of fluid increases over the sheet whereas the tangential velocity component of fluid decreases. Moreover, when the suction parameter, the Prandtl and Eckert numbers increase, the rate of the heat transfer increases. However, when the magnetic parameter increases, the rate of heat transfer reduces. Finally, the solution shows that the results of the analytical method using a special technique have an excellent agreement with numerical solutions.