It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Hold to the first row, hold to the right side, and beware of forming rows between the pillars."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11954