<P> According to legend, ancestors of today's Oromo people in a region of Kaffa in Ethiopia were believed to have been the first to recognize the energizing effect of the coffee plant, though no direct evidence has been found indicating where in Africa coffee grew or who among the native populations might have used it as a stimulant or even known about it, earlier than the 17th century . The story of Kaldi, the 9th - century Ethiopian goatherd who discovered coffee when he noticed how excited his goats became after eating the beans from a coffee plant, did not appear in writing until 1671 and is probably apocryphal . </P> <P> Other accounts attribute the discovery of coffee to Sheikh Omar . According to an ancient chronicle (preserved in the Abd - Al - Kadir manuscript), Omar, who was known for his ability to cure the sick through prayer, was once exiled from Mocha in Yemen to a desert cave near Ousab (modern - day Wusab, about 90 km east of Zabid). Starving, Omar chewed berries from nearby shrubbery but found them to be bitter . He tried roasting the seeds to improve the flavor, but they became hard . He then tried boiling them to soften the seed, which resulted in a fragrant brown liquid . Upon drinking the liquid Omar was revitalized and sustained for days . As stories of this "miracle drug" reached Mocha, Omar was asked to return and was made a saint . From Ethiopia, the coffee plant was introduced into the Arab World through Egypt and Yemen . </P> <P> The earliest credible evidence of coffee - drinking or knowledge of the coffee tree appears in the middle of the 15th century in the accounts of Ahmed al - Ghaffar in Yemen . It was here in Arabia that coffee seeds were first roasted and brewed, in a similar way to how it is now prepared . Coffee was used by Sufi circles to stay awake for their religious rituals . Accounts differ on the origin of coffee (seeds) prior to its appearance in Yemen . One account credits Muhammad Ibn Sa'd for bringing the beverage to Aden from the African coast . Other early accounts say Ali ben Omar of the Shadhili Sufi order was the first to introduce coffee to Arabia . According to al Shardi, Ali ben Omar may have encountered coffee during his stay with the Adal king Sadadin's companions in 1401 . Famous 16th - century Islamic scholar Ibn Hajar al - Haytami notes in his writings of a beverage called qahwa developed from a tree in the Zeila region . </P> <P> By the 16th century, it had reached the rest of the Middle East, Persia, Turkey, and northern Africa . The first coffee smuggled out of the Middle East was by Sufi Baba Budan from Yemen to India in 1670 . Before then, all exported coffee was boiled or otherwise sterilised . Portraits of Baba Budan depict him as having smuggled seven coffee seeds by strapping them to his chest . The first plants grown from these smuggled seeds were planted in Mysore . Coffee then spread to Italy, and to the rest of Europe, to Indonesia, and to the Americas . </P>

Where did the first coffee bean come from