The flow analysis of Al 2 O 3 and γ ‐Al 2 O 3 nanofluids near a stagnating point over a stretching sheet having velocity slip at the solid–liquid interface is presented. There is a quadratic surface temperature and a linear deformation acting on the wall boundary. Due to the uniformly applied transverse magnetic flux, the Lorentz force has an impact on the flow. The effect of nonlinear TR is integrated into the heat equation. Further, water H2O and EG C2H6O2 are base fluids. The governing boundary equations are translated into dimensionless ODEs using relevant similarity variables and solved numerically using the Runge-Kutta algorithm scheme (fourth-order) and the shooting algorithm. The impacts of the parameters, that is, velocity ratio ε , velocity slip δ , nonlinear TR Rd, the temperature ratio parameter θ w , and magnetohydrodynamics M are observed for the velocity h 2 ≤ y ≤ 0 and temperature θ ( η ) fields graphically. The results of local skin friction and local Nusselt number are shown in the table. A comparative analysis of the present results and the results of previous studies has also been made in tabular form. The research indicates that water as a base fluid gives better thermal conductivity than ethylene glycol. The consequence of TR enhances the heat transfer rate of both Al 2 O 3 / γ ‐Al 2 O 3 with H2O and C2H6O2.