All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
The Prophet said: “Any woman, who gets married without the consent of her Wali (guardian), her marriage is invalid, her marriage is invalid, her marriage is invalid.” [Abu Daawood and At-Tirmithi]
This is the view of the majority of the Muslim scholars. Therefore, if this girl married herself off, then this marriage in invalid so her father should try his best to cancel this relation using all possible ways. But it is not permissible to deprive her of inheritance as Allah Says (what means): {… and for women is a share of what the parents and close relatives leave, be it little or much - an obligatory share.} [Quran 4:7]
The Muslim scholars established the fact that the share of a person in inheritance is not merely a choice; rather, it is an indispensable matter in the Sharee’h. Even a person who is eligible for inheritance is not permitted to give up his share. If he does not want his share, he should take it and then give it to others as charity.
Allah knows best.