Warlocks learn Summon Imp from their first quest and Summon Voidwalker at level 10. Here is every route for both demons, from Northshire to the Undercity.
Warlocks in World of Warcraft: Forever learn Summon Voidwalker from a level 10 class quest. The Voidwalker is your first tanking demon, so it is well worth the trip as soon as you hit level 10.
Before that, your very first quest teaches Summon Imp. Both depend on where you started, so this page covers every route for both demons:

| Start | Trainer | Quests | Reward |
|---|---|---|---|
| Northshire (Human, Night Elf, Gnome) | Drusilla La Salle | The Stolen Tome | Summon Imp |
| Anvilmar (Human, Gnome) | Alamar Grimm | Beginnings | Summon Imp |
| Valley of Trials (Orc, Undead, Troll) | Ruzan | Vile Familiars | Summon Imp |
| Deathknell (Orc, Undead) | Venya Marthand | Piercing the Veil | Summon Imp |
| Stormwind | Gakin the Darkbinder | Surena Caledon, The Binding | Summon Voidwalker |
| Orgrimmar | Gan'rul Bloodeye | Creature of the Void, The Binding | Summon Voidwalker |
| Undercity | Carendin Halgar | Creature of the Void, The Binding | Summon Voidwalker |
Every Warlock learns the Imp from the trainer in their starting area. The quest is short and done while you level there:

Each version ends with Summon Imp. Drusilla stands in Northshire Abbey at /way 49.8, 42.6, and Alamar in Anvilmar at /way 28.6, 66.2.
At level 10, Remen Marcot in Goldshire or Lago Blackwrench in Ironforge sends you to Gakin the Darkbinder. Gakin is in the basement of the Slaughtered Lamb in the Mage Quarter of Stormwind:

Gakin gives you "Surena Caledon". Find Surena Caledon at the Brackwell Pumpkin Patch in Elwynn Forest and take Surena's Choker. Bring it back to Gakin.
Gakin then hands you the Bloodstone Choker for "The Binding". Use it at the summoning circle below the inn, defeat the Voidwalker that appears and speak with Gakin again to learn Summon Voidwalker.
Ophek sends Orc, Undead and Troll Warlocks to Gan'rul Bloodeye in the Cleft of Shadow in Orgrimmar with "Gan'rul's Summons":

Gan'rul starts "Creature of the Void". Retrieve the Tablet of Verga from the Burning Blade's lair in Skull Rock, Durotar, and bring it back.
Gan'rul then gives you the Glyphs of Summoning for "The Binding". Use them at the summoning circle, defeat the Voidwalker and return to Gan'rul for the spell.
Ageron Kargal sends Undead Warlocks to Carendin Halgar in the Temple of the Damned in the Undercity with "Halgar's Summons":

Carendin asks for Egalin's Grimoire from the Scarlet Crusade in Tirisfal Glades in "Creature of the Void". Bring it back, take the Runes of Summoning and use them at the summoning circle for "The Binding". Defeat the Voidwalker and return to Carendin.
Note: You have to defeat the Voidwalker yourself before it binds to you, so start the binding at full health and mana.
At level 20 the same trainers send you after your next demon, see How To Get The Succubus And Incubus As Warlock. The Felhunter follows at level 30, see How To Get The Felhunter As Warlock.