From Sahih Bukhari (Hadith 4605):
Narrated Al-Bara:The last Sura that was revealed was Bara'a, and the last Verse that was revealed was: "They ask you for a legal verdict, Say: Allah directs (thus) about those who leave no descendants or ascendants as heirs
Reference: Bukhari 4605