وَمَنْ قُتِلَ فِي حَدٍّ أَوْ قِصَاصٍ: غُسِّلَ وَصُلِّيَ عَلَيْهِ.
Translation: A person put to death pursuant to a hadd or qisas sentence is washed and receives the funeral prayer.
Hadd and qisas are distinct legal penalty categories. Under this classical formulation, the deceased retains funeral washing and prayer.
The criminal penalty and the funeral rites are different legal questions; the statement must not be read as permitting private individuals to impose such punishments.