Exact analytical solutions for magnetohydrodynamic (MHD) flows of an incompressible second grade fluid in a porous medium are developed. The modified Darcy's law for second grade fluid has been used in the flow modelling. The Hall effect is taken into account. The exact solutions for the unsteady flow induced by the time-dependent motion of a plane wall between two side walls perpendicular to the plane has been constructed by means of Fourier sine transforms. The similar solutions for a Newtonian fluid, performing the same motion, appear as limiting cases of the solutions obtained here. The influence of various parameters of interest on the velocity and shear stress at the bottom wall has been shown and discussed through several graphs. A comparison between a Newtonian and a second grade fluids is also made.