Jami` at-Tirmidhi, Book 6, Hadith 44 (Tirmidhi 587)

Ibn Abbas narrated:

"The Messenger of Allah would glance toward the right and the left during Salat but he would not turn his neck to look behind him."