Jabir bin Samura reported,

Whenever we prayed with the Messenger of Allah ﷺ, we would say, "Peace be upon you and the mercy of Allah, peace be upon you and the mercy of Allah," gesturing with our hands to either side.The Messenger of Allah ﷺ said, "Why are you signaling with your hands as if they were the tails of restless horses? It is enough for one of you to place his hand on his thigh, then give the greeting of peace to his brother on his right and on his left."

Muslim 970

Sahih

حدثنا أبو بكر بن أبي شيبة قال حدثنا وكيع عن مسعر ح و حدثنا أبو كريب واللفظ له قال أخبرنا ابن أبي زائدة عن مسعر حدثني عبيد الله بن القبطية

عن جابر بن سمرة قال

كنا إذا صلينا مع رسول الله ﷺ قلنا السلام عليكم ورحمة الله السلام عليكم ورحمة الله وأشار بيده إلى الجانبين فقال رسول الله ﷺ علام تومئون بأيديكم كأنها أذناب خيل شمس إنما يكفي أحدكم أن يضع يده على فخذه ثم يسلم على أخيه من على يمينه وشماله

مسلم 970صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
Command to be still during prayer, prohibition of gesturing and raising the hand when giving salam, completing the front rows and standing close together in them, and command to gather
Numbering
Darussalam 970
Muslim 970