Abu Musa reported the Prophet as saying:
“I saw in a dream that I was emigrating from Mecca to a land containing palm-trees and I conjectured that it was to al-Yamama or to Hajar, but it was the city of Yathrib.* In this vision of mine I saw that I brandished a sword and the front part of it was cut off; this represented those believers who were smitten at the battle of Uhud. I brandished it again and it was restored to perfect condition; and this represented the victory and the community of believers which God brought about.”**
(Bukhari and Muslim.)
* The old name of Medina.
** Probably a reference to the Conquest of Mecca and the numbers who accepted Islam. Cf. Qur'an, 110