Groups of whales and dolphins are called pods. This term is not exclusive to these marine mammals, and you might also encounter it used for groups of porpoises.
Here's some additional information about pods:
Social Bonds: Dolphins and whales are often social creatures, and pods provide a sense of community and protection. Members of a pod might cooperate in hunting, raising young, and navigating.
Pod Size and Composition: The size and composition of a pod can vary depending on the species and even the situation. Some pods might consist of just a few individuals, while others can number in the hundreds. Pod membership might be fluid, with individuals moving between different pods.
Not Schools of Fish: While older terminology might refer to a group of dolphins or whales as a "school," the term pod is more commonly used today to differentiate these social groups from schools of fish, which tend to be much less tightly knit and social.