Does the Bible have it? Did it appear in a specific folklore and get popularized?
You might find this thread interesting:
Why is the Devil often potrayed with a pitchfork? by /u/idjet