It is narrated from Sahl bin Sa’d (may Allah be pleased with him) that when the Prophet (ﷺ) finished the prayer, he would turn his face to the right and to the left and say salam.
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 262
Hadith Takhrijاسنادہ ضعیف، وللحدیث شواہد تقویہ منہا حدیث سعد بن ابی وقاص السابق برقم: 259 - أخرجہ البیہقی فی معرفۃ السنن والآثار: 934 وأحمد: 338/5۔