God’s law has wisdom built in

Deuteronomy 4:5-6

Behold, I have taught you statutes and ordinances, even as the LORD my God commanded me, that you should do so in the middle of the land where you go in to possess it. Keep therefore and do them; for this is your wisdom and your understanding in the sight of the peoples who shall hear all these statutes and say, “Surely this great nation is a wise and understanding people.”

from Wisdom topic