Numan bin Bashir reported,

The Messenger of Allah ﷺ used to straighten the rows until he made them as straight as a spear or an arrow shaft. He noticed one man's chest protruding, so the Messenger of Allah ﷺ said, "Straighten your rows, or Allah will surely cause discord between your faces."

Ibn Majah 994

Sahih

حدثنا محمد بن بشار حدثنا محمد بن جعفر حدثنا شعبة حدثنا سماك بن حرب أنه سمع

النعمان بن بشير يقول

كان رسول الله ﷺ يسوي الصف حتى يجعله مثل الرمح أو القدح قال فرأى صدر رجل ناتئا فقال رسول الله ﷺ سووا صفوفكم أو ليخالفن الله بين وجوهكم

ابن ماجه 994صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Straightening the rows
Numbering
Darussalam 994
Ibn Majah 994