Hadith.817 - Yunus ibn Ya'qub asked Imam Jafar ibn Muhammad Al-Sadiq عليه السلام about a man praying while wearing a burṭulah (a type of hat or head covering).
The Imam said: "It does not harm him (there is no issue)."
And I heard our esteemed scholars say that it is not permissible to pray in a ṭabaqiyyah (a specific type of head covering), and a person wearing a turban (muʿtamim) must have it wrapped (with a part of the turban under the chin).