It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that on the day of the Battle of Badr the Messenger of Allah (peace and blessings be upon him) took the sword Dhu al-Fiqar for himself from the spoils of war, and it is the same sword about which he (peace and blessings be upon him) saw a dream on the day of the Battle of Uhud. He (peace and blessings be upon him) said: "I saw a notch (a chip) in my sword Dhu al-Fiqar, (and its interpretation is that) harm will befall you. And I saw that I had a ram riding behind me, and I interpreted it as the commander of the army. And I saw that I was in a strong coat of armour, and I interpreted it as Madinah. And I saw cows being slaughtered; so by Allah, the cows (being slaughtered) are good! By Allah, the cows (being slaughtered) are good!"
And it turned out just as the Messenger of Allah (peace and blessings be upon him) had said.
Imam al-Tirmidhi (may Allah have mercy on him) narrated it from Hannad, from Abd al-Rahman bin Abi al-Zinad.
And Imam Ibn Majah (may Allah have mercy on him) narrated it from Abu Kurayb Muhammad bin al-Ala', from Muhammad bin al-Salt, from Abu al-Zinad.