Quran Al-Hujurat 49:5
وَلَوۡ أَنَّهُمۡ صَبَرُواْ حَتَّىٰ تَخۡرُجَ إِلَيۡهِمۡ لَكَانَ خَيۡرٗا لَّهُمۡۚ وَٱللَّهُ غَفُورٞ رَّحِيمٞ
Translation
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.