Abdullah bin Harith was praying with his hair tied up behind his head. Ibn Abbas stood behind him and began undoing it, while the other man let him do so. When he finished his prayer, he turned to Ibn Abbas and asked, "What business do you have with my hair?"Ibn Abbas replied, "I heard the Messenger of Allah ﷺ say, 'The example of one who prays like this is like the example of one who prays with his hands tied behind his back.'"
حدثنا محمد بن سلمة حدثنا ابن وهب عن عمرو بن الحارث أن بكيرا حدثه أن كريبا مولى ابن عباس حدثه أن
عبد الله بن الحارث يصلي ورأسه معقوص من ورائه فقام وراءه فجعل يحله وأقر له الآخر فلما انصرف أقبل إلى ابن عباس فقال ما لك ورأسي قال إني سمعت رسول الله ﷺ يقول إنما مثل هذا مثل الذي يصلي وهو مكتوف