This theme is for group of 9 ayahs from 48:18 to 48:26.
Allah was well pleased with those swore allegiance to the Prophet before the treaty of Hudeybiyah and Had there not been believers in Makkah, Allah would have allowed the Muslims to fight against Qureysh