Sunan an-Nasa'i, Book 13, Hadith 23 (Nasa'i 1203)

It was narrated that Ibn 'Abbas said:

"The Messenger of Allah (ﷺ) used to turn to his right and left when praying, but he did not twist his neck to look behind him."