A:
If the case is as you have mentioned,
and you found the cow alive and slaughtered it for fear of death, it will be permissible for you to eat its meat and to guarantee its value or to sell it and keep the money for its owner for fear that the meat may go bad. You should remember the description of the cow at the time of the accident and make a public announcement about it for one year. If its owner comes, tell him what happened. If he accepts the value of its meat, you should pay it to him. If he gets into a dispute with you, you should refer the case to the court.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.