With Arab expansion, the custom of drinking coffee spread throughout the Middle East.

An excerpt from the article 22 facts about coffee

At first, coffee was received with distrust, even its consumption was forbidden (in Mecca in 1511, and in Cairo in 1532).

However, the popularity of the beverage was so great that these bans were lifted.