Knafeh is a traditional Middle Eastern dessert made with spun pastry
called kataifi, soaked in a sweet,sugar-based syrup called attar, and
typically layered with cheese, or with other ingredients such as clotted
cream, pistachio or nuts, depending on the region. It is popular in the
Middle East.
A common story is that the dish was created, and prescribed by doctors, to satisfy the hunger of caliphs during Ramadan. The story is variously said to have happened in Fatimid Egypt, or in the Umayyad Caliphate in Syria. It is also reported to have been mentioned in writing as early as the tenth century, and to be of Fatimid origin. It is also reported to have been mentioned in writing as early as the tenth century, and to be of Fatimid origin. However, dishes mentioned in historical texts are not necessarily the same as the modern versions of kanafeh.
Find out more on Wikipedia