Classification From Maternal Origins
yes, it is a matter of choice. In Muslim history, there were many people who adopted their mother’s name like Ibn Maja the renowned Muhaddith and some took their daughter’s name like Imam Abu Hanifah.