Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: "If he washes his head with khitmi while in a state of major ritual impurity (junub), he has done enough, and it does him no harm if he does not pour water over it."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9223