Sunan Ibn Majah, Volume 4, Book 24, Hadith 2808 (DarusSalam) ⓘ
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.
حَدَّثَنَا أَبُو كُرَيْبٍ، حَدَّثَنَا ابْنُ الصَّلْتِ، عَنِ ابْنِ أَبِي الزِّنَادِ، عَنْ أَبِيهِ، عَنْ عُبَيْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم تَنَفَّلَ سَيْفَهُ ذَا الْفِقَارِ يَوْمَ بَدْرٍ .
also referenced under: Hadith 2808 (Reference) & Book 24, Hadith 2915 (In-Book)