Abu Malik Ash’ari (ra) related: The Prophet (saw) would take care of these things before commencing the prayer - that the rows of the men were at the front and the children behind them. The prophet (saw) would then state “This is the Salah of my Ummah” (Sunan Abu Dawood, vol 1, p98)