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.
حَدَّثَنَا أَبُو كُرَيْبٍ، حَدَّثَنَا ابْنُ الصَّلْتِ، عَنِ ابْنِ أَبِي الزِّنَادِ، عَنْ أَبِيهِ، عَنْ عُبَيْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم تَنَفَّلَ سَيْفَهُ ذَا الْفِقَارِ يَوْمَ بَدْرٍ .
IbnMaja
The Chapters on Jihad • Hadith 2808