عَنْ جَابِرِ بْنِ سَمُرَةَ رَضِيَ اللَّهُ عَنْهُ كُنَّا إِذَا صَلَّيْنَا وَرَاءَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قُلْنَا: السَّلَامُ عَلَيْكُمْ بِأَيْدِينَا يَمِينًا وَشِمَالًا فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ: ((مَا بَالُ أَقْوَامٍ يَرْمُونَ بِأَيْدِيهِمْ كَأَنَّهَا أَذْنَابُ الْخَيْلِ الشُّمْسِ أَلَا يَسْكُنُ أَحَدُكُمْ وَيُشِيرُ بِيَدِهِ عَلَى فَخِذِهِ ثُمَّ يُسَلِّمُ عَلَى صَاحِبِهِ عَنْ يَمِينِهِ وَعَنْ شِمَالِهِ))
It is narrated from Sayyiduna Jabir bin Samurah (may Allah be pleased with him), he says: When we used to pray behind the Messenger of Allah (peace and blessings be upon him), we would gesture with our hands to the right and left while saying "As-Salamu Alaikum." The Messenger of Allah (peace and blessings be upon him) said: What is the matter with those people who gesture with their hands in prayer as if they are the tails of unruly horses? Would it not suffice each of you to place his hand on his thigh and turn (his head) to the right and left to give salam?