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