"This, then, is what Darius said, and after appointing Artaphrenes, his father's son, to be viceroy of Sardis, he rode away to Susa, taking Histiaeus with him. First, however, he made Otanes governor of the people on the coast. Otanes' father Sisamnes had been one of the royal judges, and Cambyses had cut his throat and flayed off all his skin because he had been bribed to give an unjust judgment. Then he cut leather strips of the skin which had been torn away and with these he covered the seat upon which Sisamenes had sat to give judgment. After doing this, Cambyses appointed the son of this slain and flayed Sisamnes to be judge in his place, admonishing him to keep in mind the nature of the throne on which he was sitting." --- Herodotus, The Histories, Book 5, Chapter 2.
There is some relevant discussion at the via.
Related post at Atlas Obscura: Saint Bartholomew Flayed.