It is commonly eaten during Ramadan as part of the iftar or sunset feast.
The most often cited version is that it originated as a celebration of the death of Shajar al-Durr, who had been married to Egypt's final Sultan from the Ayyubid dynasty, As-Salih, and subsequently to the first of Egypt's Mamluk Sultans, Izz al-Din Aybak.
[4][5] Ultimately, she was herself killed in retribution, whereafter Aybak's first wife, who was known as Om Ali, asked to have a dessert prepared in celebration.
[6][7] Another version is that Om Ali celebrated the death of her husband, Aybak, and asked the cooks to come up with the most delicious dessert.
[9] The dish may be compared to bread and butter pudding, albeit that the latter also includes eggs.