Aamir bin Saeed narrates from his father (Sa’d bin Abi Waqqas, may Allah be pleased with him) that he narrated from the Prophet ﷺ that when he ﷺ finished the prayer, he would turn (his head) to the right and to the left and say salam.
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 259
Hadith Takhrijأخرجہ مسلم، المساجد، باب السلام للتحلیل من الصلاۃ عند فراغہا، وکیفیتہ: 582۔