The last verse revealed was the verse on kalalah, "They ask you for a ruling. Say, Allah gives you a ruling concerning kalalah" [Nisa 4:176].
حدثنا مسلم بن إبراهيم حدثنا شعبة عن أبي إسحق
آخر آية نزلت في الكلالة {يستفتونك قل الله يفتيكم في الكلالة}
Bukhari narrated it in tafsir, Surah Nisa, chapter "They ask you for a ruling, say, Allah gives you a ruling concerning the kalalah..." etc., no. 4605, and Muslim in the chapter on inheritance shares, chapter on the last verse revealed being the verse of kalalah, no. 1618, from the hadith of Shubah.