It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) used to glance to the right and left in prayer, but did not turn to look behind his back.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11510