It is narrated from Sayyiduna Anas (may Allah be pleased with him) that he said: "The Messenger of Allah (peace and blessings be upon him) recited (it thus): 'And We prescribed for them therein: the life for the life, and the eye for the eye.'"
At the end of the narration of Imam Ahmad bin Hanbal (may Allah have mercy on him) it says: "(He recited) al-nafs with the accusative (nasb) and al-'ayn with the nominative (raf')." Imam al-Hakim (may Allah have mercy on him) recorded it through Ibn al-Mubarak and said: "Its chain is sahih (authentic), and the two Shaykhs (Bukhari and Muslim) did not record it." He also said: Muhammad bin Mu'awiyah al-Naysaburi narrated it in Makkah from Abdullah bin al-Mubarak with some additional words.