In the sampler on the bottom left you’ll find beatsync, as weizenkeim said. This will repitch the sample to fit. If you don’t want it repitched, you can try this:
-
Set song to the bpm of your sample.
-
Slice the sample up.
-
Use thisto create a pattern with the slices.
-
Change song bpm to the bpm you want.
edit: You could also just use thisto change the tempo, which will timestretch the sample directly.