Proverbs 16:4 The LORD works out everything for his own ends–even the wicked for a day of disaster.

Jamieson-Fausset-Brown Bible Commentary

11. his time-that is, in its proper season (Ps 1:3), opposed to worldlings putting earthly pursuits out of their proper time and place (see on [657]Ec 3:9).

set the world in their heart-given them capacities to understand the world of nature as reflecting God’s wisdom in its beautiful order and times (Ro 1:19, 20). “Everything” answers to “world,” in the parallelism.

so that-that is, but in such a manner that man only sees a portion, not the whole “from beginning to end” (Ec 8:17; Job 26:14; Ro 11:33; Re 15:4). Parkhurst, for “world,” translates: “Yet He hath put obscurity in the midst of them,” literally, “a secret,” so man’s mental dimness of sight as to the full mystery of God’s works. So Holden and Weiss. This incapacity for “finding out” (comprehending) God’s work is chiefly the fruit of the fall. The worldling ever since, not knowing God’s time and order, labors in vain, because out of time and place.
Matthew Henry’s Concise Commentary

3:11-15 Every thing is as God made it; not as it appears to us. We have the world so much in our hearts, are so taken up with thoughts and cares of worldly things, that we have neither time nor spirit to see God’s hand in them. The world has not only gained possession of the heart, but has formed thoughts against the beauty of God’s works. We mistake if we think we were born for ourselves; no, it is our business to do good in this life, which is short and uncertain; we have but little time to be doing good, therefore we should redeem time. Satisfaction with Divine Providence, is having faith that all things work together for good to them that love him. God doeth all, that men should fear before him. The world, as it has been, is, and will be. There has no change befallen us, nor has any temptation by it taken us, but such as is common to men.