Did the Lord Buddha say anything about magic and fortune telling?
These are examples of wrong livelihood. The Kevatta sutta discusses fortune telling and magic

&quot;Whereas some brahmans and contemplatives, living off food given in
faith, maintain themselves by wrong livelihood, by such lowly arts as:
reading marks on the limbs [e.g., palmistry]; reading omens and signs;
interpreting celestial events [falling stars, comets];
interpreting dreams; reading marks on the body [e.g., phrenology];
reading marks on cloth gnawed by mice; offering fire oblations, oblations from a ladle, oblations of husks, rice powder, rice grains, ghee, and oil; offering oblations from the mouth; offering
blood-sacrifices; making predictions based on the fingertips;
geomancy; laying demons in a cemetery; placing spells on spirits;
reciting house-protection charms; snake charming, poison-lore, scorpion-lore, rat-lore, bird-lore, crow-lore; fortune-telling based on visions;
giving protective charms;
interpreting the calls of birds and animals —
he abstains from wrong livelihood, from lowly arts such as these.