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) . (Using translation from Bukhārī 4654)
سَمِعْتُ الْبَرَاءَ يَقُولُ «آخِرُ آيَةٍ نَزَلَتْ آيَةُ الْكَلَالَةِ وَآخِرُ سُورَةٍ نَزَلَتْ بَرَاءَةٌ»