Ecclesiastes 8:6 in the King James Version
Because to every purpose there is time and judgment, therefore the misery of man is great upon him.
Context
5 Whoever keeps the commandment shall not come to harm, and his wise heart will know the time and procedure.
6 For there is a time and procedure for every purpose, although the misery of man is heavy on him.
7 For he doesn’t know that which will be; for who can tell him how it will be?