Abu Hurairah reported,

The tribe of Khuza killed a man from the tribe of Bani Layth in the year of the Conquest of Mecca, in retaliation for one of their own whom Bani Layth had killed. The Prophet ﷺ was informed of this, so he mounted his riding camel and delivered a sermon, saying, "Allah held back from Mecca the killing," or "the elephant."Abu Abdullah said, Abu Naeem said it this way, and they recorded it with uncertainty as "the elephant or the killing," while others say "the elephant." "And He gave authority over them to His Messenger ﷺ and the believers. Know that it was not made lawful for anyone before me, nor will it be made lawful for anyone after me. Indeed, it was made lawful for me only for an hour of one day. And know that at this very hour of mine it is sacred. Its thorny shrubs are not to be cut, its trees are not to be felled, and its lost property is not to be picked up except by one who will announce it publicly. Whoever has someone killed has one of two choices, either to accept blood-money, or that the family of the slain takes retribution."Then a man from Yemen came and said, "Write this down for me, Messenger of Allah."So he said, "Write it down for Abu so-and-so."A man from Quraysh said, "Except for idhkhir grass, Messenger of Allah, for we use it in our houses and our graves."The Prophet ﷺ said, "Except for idhkhir, except for idhkhir."Abu Abdullah said, the word yuqad is spelled with a qaf. Abu Abdullah was asked, "What was written for him?"He said, "This sermon was written down for him."

Bukhari 112

Sahih

حدثنا أبو نعيم الفضل بن دكين قال حدثنا شيبان عن يحيى عن أبي سلمة

عن أبي هريرة

أن خزاعة قتلوا رجلا من بني ليث عام فتح مكة بقتيل منهم قتلوه فأخبر بذلك النبي ﷺ فركب راحلته فخطب فقال إن الله حبس عن مكة القتل أو الفيل قال أبو عبد الله كذا قال أبو نعيم واجعلوه على الشك الفيل أو القتل وغيره يقول الفيل وسلط عليهم رسول الله ﷺ والمؤمنين ألا وإنها لم تحل لأحد قبلي ولم تحل لأحد بعدي ألا وإنها حلت لي ساعة من نهار ألا وإنها ساعتي هذه حرام لا يختلى شوكها ولا يعضد شجرها ولا تلتقط ساقطتها إلا لمنشد فمن قتل فهو بخير النظرين إما أن يعقل وإما أن يقاد أهل القتيل فجاء رجل من أهل اليمن فقال اكتب لي يا رسول الله فقال اكتبوا لأبي فلان فقال رجل من قريش إلا الإذخر يا رسول الله فإنا نجعله في بيوتنا وقبورنا فقال النبي ﷺ إلا الإذخر إلا الإذخر قال أبو عبد الله يقال يقاد بالقاف فقيل لأبي عبد الله أي شيء كتب له قال كتب له هذه الخطبة

البخاري 112صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Knowledge
Chapter
Writing down knowledge
Numbering
Darussalam 112
Bukhari 112