ENOfficial
It was narrated from Ibn ‘Abbas that the Messenger of Allah (ﷺ) acquired his sword Dhulfiqar, from the spoils of war on the Day of badr.
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا أَبُو كُرَيْبٍ، حَدَّثَنَا ابْنُ الصَّلْتِ، عَنِ ابْنِ أَبِي الزِّنَادِ، عَنْ أَبِيهِ، عَنْ عُبَيْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم تَنَفَّلَ سَيْفَهُ ذَا الْفِقَارِ يَوْمَ بَدْرٍ .
sunnah.com