What is the stated ruling when imam and follower are back-to-back inside?

Prayer in, Around, and on the Roof of the Kaaba