This research presents a numerical solution for the heat source in a doubly stratified incompressible hyperbolic tangent fluid caused by the stretches of a cylinder immersed in porous medium. Two phase nanofluid is utilized in this paper, with the help of similarity transformations to reduce the boundary layer governing partial differential equation (PDE) turned into an ordinary differential equation (ODE). The system of ODEs is employed with MATLAB bvp4c. The impact of various parameters on velocity, concentration and temperature profiles is thoroughly examined and addressed. The skin friction coefficient, mass and heat transfer rates are calculated and summarized. Graphs are used to study the variation of various beneficial factors as well as their significant effects. Raising the values of aligned magnetic field raises the flow profile, whereas increasing the values of Forchheimer number decreases it.