Narrated Abu Huraira: When Allah gave victory to His Apostle over the people of Mecca, Allah's Messenger ﷺ stood up among the people and after glorifying Allah, said, "Allah has prohibited fighting in Mecca and has given authority to His Apostle and the believers over it, so fighting was illegal for anyone before me, and was made legal for me for a part of a day, and it will not be legal for anyone after me. Its game should not be chased, its thorny bushes should not be uprooted, and picking up its fallen things is not allowed except for one who makes public announcement for it, and he whose relative is murdered has the option either to accept a compensation for it or to retaliate". Al-'Abbas said, "Except Al-Idhkhir, for we use it in our graves and houses". Allah's Messenger ﷺ said, "Except Al-Idhkhir". Abu Shah, a Yemenite, stood up and said, "O Allah's Messenger ﷺ! Get it written for me". Allah's Messenger ﷺ said, "Write it for Abu Shah". (The sub-narrator asked Al-Auza'i): What did he mean by saying, "Get it written, O Allah's Apostle?" He replied, "The speech which he had heard from Allah's Messenger ﷺ ".
This hadith teaches us about respecting God's will by prohibiting fighting in sacred places such as Mecca and protecting them from any harm or danger by giving authority to believers over them so they can ensure their safety at all times. It also teaches us about justice by allowing those whose relatives are murdered either accept a compensation for their loss or retaliate against the murderer according to Islamic law which ensures fairness among all parties involved in such cases.