That is actually the title of one of the best books on the subject: "What the Buddha Taught", by Walpola Rahula. It's an oldie, but still in print as far as I know, and one of the best books on the subject. For the Buddha's actual words, or the closest that we will ever get to them, read any of the suttas in the Pali canon.