It's that you knew something before it happened.
Before thought - You thought of a style of shoes then you seen them in the mall.