وَلَوْ شَاءَ لَهَدَاكُمْ أَجْمَعِينَ
Had He willed, He would have guided you all.
«Law» commonly links a result to an unrealized or counterfactual condition. This construction can foreground a truth through the imaginative framing of what would have followed.
The cited verse has its own theological context and must not be reduced to a mechanical formula. For the present lesson, its syntax illustrates the counterfactual conditional pattern.