When times are good, be happy; but when times are bad, consider: God has made the one as well as the other. Therefore, you cannot discover anything about your future. (NIV)
In the day of prosperity be joyful, but in the day of adversity consider that God has made the one side by side with the other, so that man may not find out anything that shall be after him. (AMP)
In the day of prosperity be joyful, but in the day of adversity consider: God also hath set the one over against the other, to the end that man should find nothing after him. (KJV)