In this paper, we study higher dimensional Rastall gravity coupled to a scalar field with exponential scalar potential on spatially flat spacetimes. By using the dynamical system analysis, the background equation of motion, i.e. the Friedmann equations and the scalar field conservation, can be cast into a set of first-order differential equations and a constraint. We analyze the stability of the critical points from the theory. We also discuss the possible interpretation at the critical points with the cosmological expansion, in particular at the early- and late-time universe.