The King ruled for the claimants, but according to legend, Stanislaus resurrected Piotr so that he could confirm that he had sold the land to the bishop.
According to Augustin Calmet, an 18th-century Bible scholar, Stanislaus asked the King for three days to produce his witness, Piotr.
Stanislaus spent them in ceaseless prayer and, dressed in full bishop's regalia, went with a procession to the cemetery where Piotr had been buried three years earlier.
Stanislaus asked Piotr whether he would remain alive, but Piotr declined and so was laid to rest once more in his grave and was reburied.A more substantial conflict with King Bolesław arose after a prolonged war in Ruthenia, when weary warriors deserted and went home, alarmed at tidings that their overseers were taking over their estates and wives.
According to Wincenty Kadłubek, the King punished the soldiers' faithless wives very cruelly and was criticized for it by Bishop Stanislaus.
[5] However, according to Gallus Anonymus, Bolesław II's atrocious conduct towards his Hungarian hosts caused his premature death in 1081 or 1082 at the hands of an assassin, probably by poisoning.