Static stretches, for most individuals, are best done after tennis. Or at home or work, 45-60 mins or more prior to tennis. Some forms of yoga might require 2 hours or more of recovery time prior to tennis or other sports, for peak performance, according to quite a few yoga practitioners I've met.
https://tt.tennis-warehouse.com/index.php?threads/gym-weight-training-before-or-after...