Ecclesiastes 8:5

5 Whoever keeps the mitzvah shall not come to harm, and his wise heart will know the time and procedure.