Psalm 73:17

17 until I went into the sanctuary of God. [Then] I understood their fate.