Surah Al-Hujurat 49:5
وَلَوْ أَنَّهُمْ صَبَرُوا۟ حَتَّىٰ تَخْرُجَ إِلَيْهِمْ لَكَانَ خَيْرًا لَّهُمْ ۚ وَٱللَّهُ غَفُورٌ رَّحِيمٌ ٥
EnglishSahih International
And if they had been patient until you [could] come out to them, it would have been better for them. But Allah is Forgiving and Merciful.