Sahih al-Bukhari 4654
Book 65: Prophetic Commentary on the Qur'an (Tafseer of the Prophet (pbuh)) · Narrated by Al-Bara
Arabic
حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي إِسْحَاقَ، قَالَ سَمِعْتُ الْبَرَاءَ ـ رضى الله عنه ـ يَقُولُ آخِرُ آيَةٍ نَزَلَتْ {يَسْتَفْتُونَكَ قُلِ اللَّهُ يُفْتِيكُمْ فِي الْكَلاَلَةِ} وَآخِرُ سُورَةٍ نَزَلَتْ بَرَاءَةٌ.
English translation
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
Reference: Sahih al-Bukhari 4654, Book of Prophetic Commentary on the Qur'an (Tafseer of the Prophet (pbuh)). English translation by Dr. Muhammad Muhsin Khan.