An analytical solution of the flow of a hydromagnetic fluid through a porous medium between permeable beds is obtained and studied. The fluid is under an exponential decaying pressure gradient and the uniform magnetic field in a direction normal to the flow saturated porous medium is considered. Two governing equations, namely Navier-Stokes equations and Darcy’s law, are employed for the flow between and through the permeable beds, respectively. Injection and suction of the fluid through lower and upper permeable beds, respectively, with same velocity are allowed in the presence of porous medium and the uniform magnetic field. The velocity field and the volume flux are calculated analytically and presented graphically for different choices of the parameters exhibiting their phenomenal nature. Additionally if we replace the exponentially decaying pressure gradient by the pulsatile one and porousity of medium tends to zero, the results match excellently with those of Malathy and Srinivas [T. Malathy and S. Srinivas, Pulsatile flow of a hydromagnetic fluid between permeable beds, Int. Comm. In Heat and Mass Transfer 35, 681-688 (2008)].