Prior to giving a sample, one should avoid ejaculation for 24 hours. Avoid any kind of rigorous physical activity such as bike riding, intake of certain medications, and herbal supplements. It is not advised to give a sample if you have undergone through digital rectum exam, or have given a biopsy sample of the prostate.