There are many different stretches, some you will find better than others. Best bet is to search on google or YouTube to find some examples.
Don't forget to only stretch when warm and also check your saddle height as that can cause hamstring issues.
Chris