Conventional wisdom says both before you workout or participate in a sport, AND after. Dynamic flexibility exercises before and static flexibility/stretching after. Of course you can also stretch (and should) on days that you are not actively working out or playing a sport. In those cases, I prefer a light static stretching (stretch and hold) in the mornings before getting my day started, and a longer static stretch in the evening before going to bed. Feels great!