The Messenger of Allah (ﷺ) used to eat melon with fresh dates, and he used to say: The heat of the one is broken by the coolness of the other, and the coolness of the one by the heat of the other.
Sunan Abi Dawud Book 28, Hadith 101