Dead washed with what is not permissible for it

And whoever sees a dead person being washed with something that is not permissible for washing, then he is a corrupt man, and he preaches something that has no meaning or benefit, and his mind does not accept that .