Abu Juhayfa reported,

I asked Ali رضي الله عنه, "Do you possess anything of revelation besides what is in the Book of Allah?"He replied, "No, by the One who splits the seed and creates the soul, I know of nothing except an understanding that Allah grants a man regarding the Quran, and what is in this document."I asked, "What is in the document?"He said, "The rulings on blood-money, the freeing of captives, and that a Muslim is not to be killed for a disbeliever."

Bukhari 3047

Sahih

حدثنا أحمد بن يونس حدثنا زهير حدثنا مطرف أن عامرا حدثهم

عن أبي جحيفة رضي الله عنه قال

قلت لعلي رضي الله عنه هل عندكم شيء من الوحي إلا ما في كتاب الله قال لا والذي فلق الحبة وبرأ النسمة ما أعلمه إلا فهما يعطيه الله رجلا في القرآن وما في هذه الصحيفة قلت وما في الصحيفة قال العقل وفكاك الأسير وأن لا يقتل مسلم بكافر

البخاري 3047صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Jihad and expeditions
Chapter
Ransoming the captive
Numbering
Darussalam 3047
Bukhari 3047