Dyeing the hair symbolises concealment and protection. Thus, if a person sees himself dyeing his hair it means that Allah will protect him from the evil consequences of what he intends to do. But if the dye does not stick to his hair, it means he will not be granted protection.
[1]