It is narrated from Ibn Umar (may Allah be pleased with them both) that he reports from the Prophet (peace and blessings be upon him) that he (peace be upon him) would turn to the right and to the left when saying salam (at the end of prayer).
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 263
Hadith Takhrijفي اسناده مقال فان ابن جریج مدلس وقد عنعن وللحديث شواهد من طرق اخرى تقويه اخرجه النسائي، السهو، باب كيف السلام على الشمال 1325 ۔ واحمد: 2/ 072 ، 152 ۔ والبيهقي في المعرفة السنن والآثار : 935 ۔ وصححه ابن خزيمة : 576۔