Surah Al-Hujurat, ayah 5

49:5

وَلَوۡ أَنَّهُمۡ صَبَرُواْ حَتَّىٰ تَخۡرُجَ إِلَيۡهِمۡ لَكَانَ خَيۡرٗا لَّهُمۡۚ وَٱللَّهُ غَفُورٞ رَّحِيمٞ ٥

Walaw annahum sabarū hattā takhruja ilayhim lakāna khayral lahum wallāhu ghafūrur rahīm

And if they had been patient until you [could] come out to them, it would have been better for them. But Allāh is Forgiving and Merciful.