Other translations of verse 27
Indeed, Allah has fulfilled His Messenger’s dream in truth: that you will surely enter the Sacred Mosque if Allah wills, in peace and safety, and you will have your heads shaved or shortened18, without any fear. He knew what you did not know, and He granted you prior to that an imminent conquest19.
Notes
[18] Shaving or trimming hair is from the requirements upon completing the rites of pilgrimage.
[19] Referring to the Treaty of Hudaybiyyah and subsequently the conquest of Khaybar prior to the fulfillment of the Prophet’s dream regarding entering Makkah for pilgrimage.
Indeed Allâh shall fulfil the true vision which He showed to His Messenger (صلى الله عليه وسلم) [i.e. the Prophet صلى الله عليه وسلم saw a dream that he has entered Makkah along with his Companions, having their (head) hair shaved and cut short] in very truth. Certainly, you shall enter Al-Masjid-al-Harâm, if Allâh wills, secure, (some) having your heads shaved, and (some) having your head hair cut short, having no fear. He knew what you knew not, and He granted besides that a near victory.
Allah hath fulfilled the vision for His messenger in very truth. Ye shall indeed enter the Inviolable Place of Worship, if Allah will, secure, (having your hair) shaven and cut, not fearing. But He knoweth that which ye know not, and hath given you a near victory beforehand.
Truly did Allah fulfil the vision for His Messenger: ye shall enter the Sacred Mosque, if Allah wills, with minds secure, heads shaved, hair cut short, and without fear. For He knew what ye knew not, and He granted, besides this, a speedy victory.
Certainly Allah had shown to His Messenger the vision with truth: you shall most certainly enter the Sacred Mosque, if Allah pleases, in security, (some) having their heads shaved and (others) having their hair cut, you shall not fear, but He knows what you do not know, so He brought about a near victory before that.
Indeed Allah has already sincerely vouchsafed to His Messenger the vision with the Truth: "Indeed you will definitely enter the Inviolable Mosque, in case Allah (so) decides, secure, (some of you) heads clean-shaven, (and some) hair cut short, not fearing." Yet He knew what you did not know, and so set up (Literally: made) for you, apart from that, a near conquest.