When he was just beginning to teach, before Muhammad gained a significant following he said that it was alright to drink.Qur'an 2:219 They ask you Concerning wine; gambling, Say "In them is great sin, And some profit for men; But the sin is greater Than the profit.
As his power base grew, he presented a stronger position. It was not acceptable to have had any intoxicants close enough to prayers to fog the mind.
Qur'an 4:43 O you who believe! Approach not prayer With a mind befogged, Until you can understand All that you say.
When his position was strongly established, he forbade the use of intoxicants entirely.
Qur'an 5:93 O you who believe! Intoxicants and gambling, (Dedication) of stones, And (divination by) arrows, Are an abomination, - Of Satan' handiwork: Eschew such (abomination) That you may prosper. 94. Satan's plan is (but) To excite enmity and hatred Between you, with intoxicants And gambling, and hinder you From the remembrance Of Allah, and from prayer: Will you not then abstain?
His final revelation calls the use of intoxicants "Satan's handiwork." This puts him in the awkward position of having had Allah approve of "Satan's Handiwork' when he said that there was "some profit for men" in the use of intoxicants.
Does God vacillate on sin?
When you read the various scriptures of the world's traditions and study them, as I have, you realize that there is inherent contradiction in all of them. One chapter says to be peaceful and the other says to make things right by any means even force. It's the divine/human component of all texts.
Yes, the Qur'an contradicts itself, because in some places, the Qur'an calls for peace, but in other places, the Qur'an calls for violence. In one place, the Qur'an says not to take another life. But in another place, the Qur'an says to slay people who do not convert to Islam. The Qur'an is contradictory, and it is hard to understand what the exact teachings are as they relate to violence.
In no where does it say so in Islam please note that when you go into these topics sometimes these sort of questions especially this one lots of learned men would have discussed and debated (yes debated) and finally documented this. The modern day media has had truth twisted to the point that any terrorist is Muslim and any bomb is jihad. And that every arabic named of Muslim origin murderer is seen as the true and only follower of the religion. My dear brothers and sisters please check everything you hear
Coming back on topic here is a website that clarifies the question :-
This is a reliable website please check in such websites whether your internet sources are correct or not
This was to clarify what the first two post said regarding the fact that islam is said to be peaceful yet at the same time urges you to be violent and kill people