Understanding of dusty fluids for different Brinkman numbers in porous media is limited. This study examines the Darcy–Brinkman model for two-dimensional magneto-hydrodynamic fluid flow across permeable stretching/shrinking surfaces with heat transfer. Water was considered as a conventional base fluid in which the copper (Cu), silver (Ag), and titanium dioxide (TiO2) nanoparticles were submerged in a preparation of a ternary dusty nanofluid. The governing nonlinear partial differential equations are converted to ordinary differential equations through suitable similarity conversions. Under radiation and mass transpiration, analytical solutions for stretching sheets/shrinking sheets are obtained. Several parameters are investigated, including the magnetic field, Darcy–Brinkman model, solution domain, and inverse Darcy number. The outcomes of the present article reveal that increasing the Brinkman number and inverse Darcy number decreases the velocity of the fluid and dusty phase. Increasing the magnetic field decreases the momentum of the boundary layer. Ternary dusty nanofluids have significantly improved the heat transmission process for manufacturing with applications in engineering, and biological and physical sciences. The findings of this study demonstrate that the ternary nanofluid phase’s heat and mass transpiration performance is better than the dusty phase’s performance.