Rabbi Yoḥanan raised an objection to Rabbi Shimon ben Lakish from a baraita: There was an incident in Bnei Brak involving one who sold some of his father’s property that he had inherited, and he died, and the members of his family came and contested the sale, saying: He was a minor at the time of his death, and therefore the sale was not valid. And they came and asked Rabbi Akiva: What is the halakha? Is it permitted to exhume the corpse in order to examine it and ascertain whether or not the heir was a minor at the time of his death? Rabbi Akiva said to them: It is not permitted for you to disgrace him for the sake of a monetary claim. And furthermore, signs indicating puberty are likely to change after death, and therefore nothing can be proved by exhuming the body.
Apropos the Ḥabbarim, the Gemara cites the following statement of the Sages: The Ḥabbarim were able to issue decrees against the Jewish people with regard to three matters, due to three transgressions on the part of the Jewish people. They decreed against meat, i.e., they banned ritual slaughter, due to the failure of the Jewish people to give the priests the gifts of the foreleg, the jaw, and the maw. They decreed against Jews bathing in bathhouses, due to their neglect of ritual immersion. Third, they exhumed the dead from their graves because the Jews rejoice on the holidays of the gentiles, as it is stated: “Then shall the hand of the Lord be against you and against your fathers” (I Samuel 12:15). Rabba bar Shmuel said: This verse is referring to exhuming the dead, which upsets both the living and the dead, as the Master said: Due to the iniquity of the living, the dead are exhumed.
One should not remove a corpse and bones from a dignified grave to [another] dignified grave, nor from an undignified grave to [another] undignified grave, nor from an undignified one to a dignified one, and needless to say [that it is forbidden] from a dignified one to an undignified one.