Abdul Hameed bin Mahmood narrates that I prayed standing next to Sayyiduna Anas bin Malik (may Allah be pleased with him). Due to the crowd, we reached up to the pillars, so he said that during the blessed era of the Messenger of Allah (peace and blessings be upon him), we used to avoid this action.
Hadith Referenceصحيح ابن خزيمه / جماع أبواب قيام المأمومين خلف الإمام وما فيه من السنن / 1568