It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) recited this blessed verse: "And We ordained for them (the Children of Israel) therein (in the Torah) that a life is for a life and an eye for an eye" (the whole verse).
Imam Abu Ya'la al-Mawsili and Imam Ahmad bin Hanbal also recorded this hadith. Imam al-Hakim Abu Abdullah al-Hafiz recorded it by way of Abdullah bin al-Mubarak, declared it sahih in its chain, and stated that Imam al-Bukhari and Imam Muslim did not record it. He also mentioned that Muhammad bin Ya'qub al-Naysaburi narrated it in Makkah from Abdullah bin al-Mubarak with some additional words.