It is narrated from Sayyiduna Abu Rafi' (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) forbade a man from praying while his hair is tied up (in a knot).
Hadith Referenceالمعجم الكبير للطبراني / باب الألف / 986