God is the Most Wise, the Most Just, and the Most Merciful. Both His withholding from us and His giving are part of His wisdom, justice and mercy. God knows us and our states. When He restricts, He also expands - there is no restriction without eventual expansion, there is no withholding without eventual giving. The manifestations of qabd (withholding) and bast (expansion) are many.