Surah Al-Fath 48:27
لَّقَدْ صَدَقَ ٱللَّهُ رَسُولَهُ ٱلرُّءْيَا بِٱلْحَقِّ ۖ لَتَدْخُلُنَّ ٱلْمَسْجِدَ ٱلْحَرَامَ إِن شَآءَ ٱللَّهُ ءَامِنِينَ مُحَلِّقِينَ رُءُوسَكُمْ وَمُقَصِّرِينَ لَا تَخَافُونَ ۖ فَعَلِمَ مَا لَمْ تَعْلَمُوا۟ فَجَعَلَ مِن دُونِ ذَٰلِكَ فَتْحًا قَرِيبًا
Certainly has Allāh showed to His Messenger the vision [i.e., dream] in truth. You will surely enter al-Masjid al-Ḥarām, if Allāh wills, in safety, with your heads shaved and [hair] shortened, not fearing [anyone]. He knew what you did not know and has arranged before that a conquest near [at hand].
Translation: Saheeh International
Tafsir
Verily God has fulfilled the vision for His Messenger in all truth The Messenger of God s saw in his sleep in the year of al-Hudaybiyya before his departure from Medina that he would enter Mecca together with his Companions safely whereafter they would shave completely or shorten their hair. …
Excerpt from Tafsir al-Jalalayn, commentary on 48:27, via Quran.com. The reader has the full commentary and 9 more tafsirs.