And you can find loads of different sources showing the same. Search for yourself.
So now, as a rational person, you should consider the source that told you different and be angry that they were lying to you. And you won't trust that source again, right?
However if you go further back in time (50 million years or so) it seems possible that the Earth was hotter than today, modulo all uncertainties and approximations needed to get to these figures: https://en.m.wikipedia.org/wiki/Geologic_temperature_record
Which may be fine for the Earth in general, but perhaps not for the human civilization and agriculture we have built over only the last few thousand years.