Mishkat al-Masabih 4618
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
وَعَنْ أَبِي مُوسَى عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: 
" رَأَيْتُ فِي الْمَنَامِ أَنِّي أُهَاجِرُ مِنْ مَكَّةَ إِلَى أَرْضٍ بِهَا نَخْلٌ فَذَهَبَ وَهْلِي إِلَى أَنَّهَا الْيَمَامَةُ أَوْ هَجَرُ فَإِذَا هِيَ الْمَدِينَةُ يَثْرِبُ وَرَأَيْتُ فِي رُؤْيَايَ هَذِهِ: أَنِّي هَزَزْتُ سَيْفًا فَانْقَطَعَ صَدْرُهُ فَإِذَا هُوَ مَا أُصِيبَ مِنَ الْمُؤْمِنِينَ يَوْمَ أُحُدٍ ثُمَّ هَزَزْتُهُ أُخْرَى فعادَ أحسنَ مَا كانَ فإِذا هوَ جَاءَ اللَّهُ بِهِ مِنَ الْفَتْحِ وَاجْتِمَاعِ الْمُؤْمِنِينَ "