Yoku Wakaru Gendai Mahou, Mahou Shoujo Madoka★Magica Recommendations
Both anime are about girls who use magic. In both of them they talk about sacrifice and world´s destruction. The protagonists Koyomi and Madoka are very similar, also Misa is a bit similar to Mami and Yumiko to Homura. In both of them people go back in time. At the end two girls fight for their friendship.