From him, from Ahmad from Muhammad ibn Sahl ibn al-Yasa‘ al-Ash‘ari from his father from Abu al-Hasan عليه السلام, peace be upon him, who said:
I asked Imam عليه السلام: "May a man pray while wearing his dye (khidab) if he is in a state of purity?" Imam عليه السلام said: "Yes."
Ali Akbar al-Ghaffari
Tahdhīb al-Aḥkām fī Sharḥ al-Muqniʿah, vol. 2, p. 382