Sayyiduna Abdullah bin Abbas (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "Safeguard the rows during prayer from disorder." That is, do not stand far apart from each other.
Hadith Referenceسلسله احاديث صحيحه / الاذان و الصلاة / 575