[Machine] When we used to pray behind the Messenger of Allah ﷺ, we would greet with "peace be upon you" using our right and left hands. The Messenger of Allah ﷺ said, "What is the matter with some people who throw their hands as if they were the tails of horses? Shouldn't one of you settle down and indicate with his hand towards his thigh, then greet his companion on his right and left?"
كُنَّا إِذَا صَلَّيْنَا وَرَاءَ رَسُولِ اللهِ ﷺ قُلْنَا السَّلَامُ عَلَيْكُمْ بِأَيْدِينَا يَمِينًا وَشِمَالًا فَقَالَ رَسُولُ اللهِ ﷺ مَا بَالُ أَقْوَامٍ يَرْمُونَ بِأَيْدِيهِمْ كَأَنَّهَا أَذْنَابُ الْخَيْلِ الشُّمْسِ أَلَا يَسْكُنُ أَحَدُكُمْ وَيُشِيرُ بِيَدِهِ عَلَى فَخِذِهِ ثُمَّ يُسَلِّمُ عَلَى صَاحِبِهِ عَنْ يَمِينِهِ وَعَنْ شِمَالِهِ