Psalm 73:17

New King James Version (NKJV)

17 Until I went into the sanctuary of God;
Then I understood their end.