Name and why it is called so
The surah is named after the tribe mentioned in its first verse, "Li-ilafi Quraysh" (For the familiarity of Quraysh). Quraysh was the noble tribe of Mecca into which the Prophet ﷺ was born, respected throughout Arabia because it served the Kaaba and hosted the pilgrims. The root of ilaf is alf, which includes making familiar, joining together and creating fondness; that is, Allah made Quraysh accustomed to these journeys and made them easy for them.
Time of revelation and background
This is a Meccan surah. Mecca lay in a barren valley without farming, so the livelihood of Quraysh depended on trade. Their caravans went to Yemen in winter and to Syria (al-Sham) in summer. Robbery was common on the roads of Arabia, but no one troubled the caravans of Quraysh because they were the servants of the House of Allah, and after the destruction of the People of the Elephant this respect grew even greater. According to Imam Ibn Jarir al-Tabari, the Muslims agree that Al-Fil and Quraysh are two separate surahs, even though their themes are connected.
Main themes
The central message of the surah is that gratitude for a blessing is shown through worship. Allah gave Quraysh two great blessings: provision, feeding them and saving them from hunger even though they lived in a barren valley; and security, keeping them safe from fear despite the lawlessness all around. That is why they were commanded to worship only "Rabba hadhal-bayt" (the Lord of this House), the Lord of the Kaaba, through whose blessing all this came. The lesson of the tafsir of Surah Quraysh for every Muslim is that provision and security are gifts from Allah, and their due is gratitude and worship.