Planetary flybys for gravitational assists are a stable of deep space missions. When did the following things happen?
- First documented realization that gravitational assists in spaceflight were possible and useful
- First formal mathematical demonstration that gravitational assists were possible and useful
- First formal mission plan using a gravitational assist
- First execution of a gravitational assist by a spacecraft
It is possible and likely that one or more of these is also covered by another answer, in that case feel free to link to it and quote a few key parts if that's more convenient. This way several related good answers to different questions can all be cross-referenced in a single location here.