The gospel of Matthew has Satan take Jesus to the temple roof and challenge him to jump off. Then it has him take Jesus to a mountain and offer him the world in exchange for worshiping him.
The gospel of Luke has Satan take Jesus to a mountain and offer him the world in exchange for worshiping him. Then it has him take Jesus to the temple roof and challenge him to jump off.
(The gospel of Mark only very briefly mentions Satan tempting Jesus, and doesn’t go into the details. And the gospel of John doesn’t mention it at all.)