It is narrated from Sayyiduna Wa'il bin Hujr (may Allah be pleased with him) that he said: I prayed behind the Messenger of Allah (peace and blessings be upon him). When he said the takbir he would also raise his hands, and when he bowed, and when he raised his head from bowing, or prostrated, he would also raise his hands.
I saw him (peace and blessings be upon him) giving the salam to his right and to his left.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 2312