Did the Prophets before Mohammad (pbuh) drink?

First of all Ali(ra) was not a Prophet. And second of all, no Prophet worshipped idols but Sahaba(ra) did (ofcourse before they became muslim).