Ash from magnesium ribbon is magnesium oxide.
Explanation
When magnesium ribbon is burnt in air, it combines with oxygen to form white powder magnesium oxide MgO with the release of heat and light. It forms a white powder of the magnesium oxide. Magnesium gives up two electrons to oxygen atoms to form this powdery product.
2Mg+O2⟶2MgO