Allah never does anything except for a wisdom
“He is not questioned about what He does, but they will be questioned”
[Surat ul-Anbiyaa, 21:23]
Shaykh Saalih al-Fawzaan (hafidhahullaah) comments:
“Allaah is not questioned about what He does, because Allaah never does anything except for a wisdom. And the wisdom may be apparent or may be hidden to us. So we believe that Allaah never does anything in vain, but rather He does it due to a wisdom, whether it is apparent to us or not.”
[At-Ta’leeqaat ul-Mukhtasarah ‘alaa l-’Aqeedat it-Tahaawiyyah, p. 113 Asaheeha Translations]