You’re probably thinking of a [Gravity slingshot](https://en.wikipedia.org/wiki/Gravity_assist). It only works because the planet (or whatever) is in motion. Thrusting while closer to a planet as it’s passing you has a bonus effect as opposed to thrusting in empty deep space. And the planet slows down a tiny fraction.
Likewise if you wanted to fly into a solar system and slow down to match speeds you’d thrust while Jupiter is coming towards you on it’s orbit path. It can work as a space brake too.
Latest Answers