The last verse revealed from the Quran 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].
حدثنا علي بن خشرم أخبرنا وكيع عن ابن أبي خالد عن أبي إسحق
آخر آية أنزلت من القرآن {يستفتونك قل الله يفتيكم في الكلالة}