It wasnarrated from Ibn 'Abbas that the Messenger of Allah (ﷺ)acquiredhis sword Dhulfiqar, from the spoils of war on the Day ofbadr. (ID)
English reference (ID): Vol. 4, Book 24, Hadith 2808 (ID)
Arabic reference (ID): Book 24, Hadith 2915 (ID)