The Messenger of Allah ﷺ prohibited, according to the version of Ahmad ibn Hanbal, that a person should sit during prayer while he is leaning on his hand. According to the version of Ibn Shibwayh, he prohibited that a man should lean on his hand during prayer. According to the version of Ibn Rafi', he prohibited that a man should pray while he is leaning on his hand, and he mentioned this tradition in the chapter on "Raising the head after prostration." According to the version of Ibn AbdulMalik, he prohibited that a man should lean on his hand when he stands up after prostration.
نَهَى رَسُولُ اللَّهِ ﷺ قَالَ أَحْمَدُ بْنُ حَنْبَلٍ أَنْ يَجْلِسَ الرَّجُلُ فِي الصَّلاَةِ وَهُوَ مُعْتَمِدٌ عَلَى يَدِهِ وَقَالَ ابْنُ شَبُّويَةَ نَهَى أَنْ يَعْتَمِدَ الرَّجُلُ عَلَى يَدِهِ فِي الصَّلاَةِ وَقَالَ ابْنُ رَافِعٍ نَهَى أَنْ يُصَلِّيَ الرَّجُلُ وَهُوَ مُعْتَمِدٌ عَلَى يَدِهِ وَذَكَرَهُ فِي بَابِ الرَّفْعِ مِنَ السُّجُودِ وَقَالَ ابْنُ عَبْدِ الْمَلِكِ نَهَى أَنْ يَعْتَمِدَ الرَّجُلُ عَلَى يَدَيْهِ إِذَا نَهَضَ فِي الصَّلاَةِ