The last surah revealed was Baraah, and the last verse revealed was "They ask you for a ruling. Say, Allah gives you a ruling concerning those who leave no descendants or ascendants as heirs" [Nisa 4:176].
حدثنا سليمان بن حرب حدثنا شعبة عن أبي إسحاق سمعت
آخر سورة نزلت براءة وآخر آية نزلت {يستفتونك قل الله يفتيكم في الكلالة}