וַיְהִ֗י בִּֽהְי֤וֹת דָּוִד֙ אֶת־אֱד֔וֹם בַּעֲל֗וֹת יוֹאָב֙ שַׂ֣ר הַצָּבָ֔א לְקַבֵּ֖ר אֶת־הַחֲלָלִ֑ים וַיַּ֥ךְ כָּל־זָכָ֖ר בֶּאֱדֽוֹם׃
Porque sucedeu que, quando Davi esteve em guerra contra Edom, tendo Jeabe, o chefe do exército, subido a enterrar os mortos, e ferido a todo varão em Edom
Rashi
In his days, Edom rebelled, etc. For David had destroyed all the males in Edom, and he appointed governors over them instead of a king, and they paid him tribute, and all the kings of Judah did similarly: they appointed governors who pleased them. And from the days of Joram and thereafter, they [the Edomites] rebelled against the authority of Judah.
Rashi
Dovid made a name [for himself]. He buried those of Edom whom he had killed and that is a good name for Yisroel that they bury their enemies. As it says in reference to the war of Gog and Mogog, "All the people of the land will bury and this will acquire for them a name." (Yechezkel 39:13) And how do we know that Dovid buried them? Because it says in the Book of kings (I, 11:15), "And it happened when Dovid was in Edom when Yoav, his army general went up to bury the corpses."