Nothing is obligatory on Allah God
بِسْمِ اللهِ الرَّحْمَنِ الرَّحِيم
Allâh is not obligated to do anything.
Everything belongs to Allâh and He does what he wants.
Allâh rewards by His grace and He punishes by His justice
https://www.islam.ms/en/?p=22