The official website for The Settlers of Catan

Question about Base Game Seven and Robber - If I move the robber to the desert, do I draw a card from the owner of an adjacent settlement or city?

Answer

If you move the robber to the desert because you rolled a “7” or played a Knight Card: yes.

Traders & Barbarians features some other possibilities to move the robber to the desert. In this context, please note the different rules for this game.