Sahih al-Bukhari, Book 65, Hadith 176 (Bukhari 4448)

Narrated Al-Bara:

The last Verse that was revealed was: 'They ask you for a legal verdict: Say: Allah directs (thus) about Al-Kalalah (those who leave no descendants or ascendants as heirs).' And the last Sura which was revealed was Baraatun (9) .