Psalm 37:5–6 (ESV) … “Commit your way to the Lord; trust in him, and he will act. He will bring forth your righteousness as the light, and your justice as the noonday.”
Commit your way to the Lord (vv. 5–6). The verb means “to roll off your burden” (1 Peter 5:7). God doesn’t take our burdens so that we can become irresponsible, but so we can serve Him better. Sometimes less care means we become careless, and that leads to failure. One of the things He will “bring to pass” is the vindication of His servants who have been slandered by God’s enemies (v. 6, niv; see vv. 28, 32–33).
Here David illustrates and confirms the doctrine contained in the preceding verse. In order that God may accomplish our desires, it behoves us to cast all our cares upon him in the exercise of hope and patience. Accordingly, we are taught from this passage how to preserve our minds in tranquillity amidst anxieties, dangers, and floods of trouble. There can be no doubt, that by the term ways we are here to understand all affairs or businesses. The man, therefore, who, leaving the issue of all his affairs to the will of God, and who, patiently waiting to receive from his hand whatever he may be pleased to send, whether prosperity or adversity, casts all his cares, and every other burden which he bears, into his bosom; or, in other words, commits to him all his affairs,—such a person rolls his ways upon Jehovah.
Hence, David again inculcates the duty of hope and confidence in God: And trust in him. By this he intimates, that we render to him the honour to which he is entitled only when we intrust to him the government and direction of our lives; and thus he provides a remedy for a disease with which almost all men are infected. Whence is it that the children of God are envious of the wicked, and are often in trouble and perplexity, and yield to excess of sorrow, and sometimes even murmur and repine, but because, by involving themselves immoderately in endless cares, and cherishing too eagerly a desire to provide for themselves irrespective of God, they plunge, as it were, into an abyss, or at least accumulate to themselves such a vast load of cares, that they are forced at last to sink under them? Desirous to provide a remedy for this evil, David warns us, that in presuming to take upon us the government of our own life, and to provide for all our affairs as if we were able to bear so great a burden, we are greatly deceived, and that, therefore, our only remedy is to fix our eyes upon the providence of God, and to draw from it consolation in all our sorrows. Those who obey this counsel shall escape that horrible labyrinth in which all men labour in vain; for when God shall once have taken the management of our affairs into his own hand, there is no reason to fear that prosperity shall ever fail us. Whence is it that he forsakes us and disappoints our expectations, if it is not because we provoke him, by pretending to greater wisdom and understanding than we possess? If, therefore, we would only permit him, he will perform his part, and will not disappoint our expectations, which he sometimes does as a just punishment for our unbelief.
 Wiersbe, W. W. (2004). Be worshipful (1st ed., p. 143). Cook Communications Ministries.  Calvin, J., & Anderson, J. (2010). Commentary on the Book of Psalms (Vol. 2, pp. 21–22). Logos Bible Software.