I know it happened in islamic history. But I don't know who did it and with whom.
There was a tribal war between two muslim tribes.
One tribe dig out the dead bodies of other tribe.
It was not tribe-on-tribe barbarism per se. As far as I know, it was done within the scope of "Islamic history" to a few dead Umayyad caliphs, according to Almasudi in
The Meadows of Gold and Mines of Gems (NB I’m familiar with the original Arabic version).
He (and other so-called “Islamic historians”) relates that when the Umayyad Caliphate fell, the Umayyads faced a decimating massacre at the hands of the Persian regiment within the Abbasid army. The regiment had held grudge (I think Almasudi was eluding to their being Shite who descended from so pejoratively called Majus). Thus the army killed 70 thousand people, and excavated the graves of Umayyad Caliphs.
Hisham ibn Abd al-Malik, in particular, was dug up on the orders of the notorious As-Saffah (أبو العباس عبدالله السّفاح). His corpse hadn’t badly decomposed at that point. As-Saffah then flogged the corpse of Hisham 80 whips, then ordered its crucifixion and finally burnt it and had the ashes thrown away.
The barbaric favour was returned to the Abbasids, not necessarily commensurately or by their former victims, when their enduring caliphate eventually fell and the male bloodline of it was deemed necessary to be wiped out.