The committee replied:
If he finds the row is full, he should wait until someone else comes to stand beside him, and should not pull anyone out of the row. If he can join the row or pray on the imaam’s right, he should do so. As for standing in the row with the boys, if they are of the age of discernment, then it is OK to join their row, because of the reports in al-Saheehayn and elsewhere from Anas (may Allaah be pleased with him) who said:
“The orphan and I formed a row behind him, and the old lady stood behind us” – referring to their praying behind the Messenger of Allaah sallallahu 'alaihi wa sallam (peace and blessings of Allaah be upon him), when he visited him in his house one morning. If the boys are not yet of the age of discernment, then then praying with them behind the last row is like praying standing alone, and it is not correct to pray standing alone behind a row, because the Prophet sallallahu 'alaihi wa sallam (peace and blessings of Allaah be upon him) said: “There is no prayer for the one who stands alone behind the row.”
Al-Lajnah al-Daa’imah li’l-Buhooth al-‘Ilmiyyah wa’l-Iftaa, Fataawa al-Lajnah al-Daa’imah, 8/706
If it is feared that he will miss the prayer and there is no place in the row, and no one else comes along to pray behind the imaam, then his prayer standing alone is valid, because Allâh says (interpretation of the meaning): “So keep your duty to Allaah and fear Him as much as you can” [al-Taghaabun 64:16]. This was the fatwa of Shaykh al-Islam Ibn Taymiyah, may Allaah have mercy on him.
Follow {IHYA-US-SUNNAH} on:
http://www.ihya-us-sunnah.com/
https://www.youtube.com/user/IHYAUSSUNNAH
https://www.facebook.com/Ihyaussunnah.society.hyd