It is narrated from Sayyidah Umm Salamah (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) forbade a man to pray while his hair is tied up (in a bun).