Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: On the day of Badr, the sword Dhu al-Fiqar was given to the Messenger of Allah (peace and blessings be upon him) as an extra share (nafl), and it is the very sword about which he ((peace and blessings be upon him)) saw a dream on the day of (the Battle of) Uhud.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10687