It is narrated from Hazrat Nu'man bin Bashir (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) used to straighten the rows in the same way as arrows are straightened.
Hadith Referenceمسند احمد / أول مسند الكوفيين / 18376