It is narrated from Abdullah bin Mas'ud (may Allah be pleased with him) who says: "None of you should ever allocate a share for Satan in his prayer by considering it necessary to turn only to the right side, whereas I have often seen the Messenger of Allah (ﷺ) turning to his left side."
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 270
Hadith Takhrijأخرجہ البخاری: الأذان، باب الانفتال والانصراف عن الیمین والشمال: 852۔ ومسلم، الصلاۃ، باب جواز الانصراف من الصلاۃ عن الیمین والشمال: 707۔