Qasamah existed during the Jahiliyyah and the Messenger of Allah approved of it as it had…

Sunan an-Nasa'i Book 45 Hadith 3

Sunan an-Nasa'i #4708

The Book of Oaths (qasamah), Retaliation and Blood Money 45:3

it was narrated from Abu Salamah and Sulaiman bin Yasar, from some of the Companions of the Messenger of Allah, that:

Qasamah existed during the Jahiliyyah and the Messenger of Allah approved of it as it had been during the Jahiliyyah, and he ruled accordingly among some of the Ansar concerning a victim whom they claimed the Jews of Khaibar had Killed. (Sahih)Ma'mar contradicted the two of them.

Chapter: Qasamah