Proverbs 16:2-4 Amplified Bible (AMP)

2. All the ways of a man are pure in his own eyes, but the Lord weighs the spirits (the thoughts and intents of the heart). [I Sam. 16:7; Heb. 4:12.]

3. Roll your works upon the Lord [commit and trust them wholly to Him; He will cause your thoughts to become agreeable to His will, and] so shall your plans be established and succeed.

4. The Lord has made everything [to accommodate itself and contribute] to its own end and His own purpose–even the wicked [are fitted for their role] for the day of calamity and evil.

Proverbs 16