The Messenger of Allah ﷺ used to straighten the rows as precisely as spears or arrow shafts are aligned.
حدثنا أبو معاوية حدثنا مسعر عن سماك بن حرب
كان رسول الله ﷺ يقيم الصفوف كما تقام الرماح أو القداح
Its isnad is sahih. It preceded in 18289.