Jabir bin Samura reported,

Whenever we prayed behind the Messenger of Allah ﷺ, we would say "as-salamu alaykum" while gesturing with our hands to the right and to the left. The Messenger of Allah ﷺ said, "What is the matter with people who throw their hands about as if they were the tails of unruly horses? Let one of you remain still, place his hand on his thigh, and then give the greeting to his companion on his right and on his left."

Ahmad 20806

Sahih

حدثنا يزيد أخبرنا مسعر عن عبيد الله ابن القبطية

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

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

أحمد 20806صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Jabir bin Samura
Numbering
Darussalam 20806
Ahmad 20806