Three races in the players handbook automatically have access to spells regardless of class: Elves, Gnomes, and Tieflings. 

  • High Elves get 1 cantrip of their choice (from the wizard list) 
  • Drow Elves get the dancing lights cantrip and darkness
  • Forest Gnomes get the minor illusion cantrip
  • Tiefling get the thaumaturgy cantrip, hellish rebuke, and darkness