Did the Prophets before Mohammad (pbuh) drink?

Isn't it the wrong order? You assume wrong by the way