The last complete surah to be revealed was Bara'ah, and the last surah to be revealed in its closing portion was Surah an-Nisa, "They ask you for a ruling. Say, Allah gives you a ruling concerning kalalah" [Nisa 4:176].
حدثني عبد الله بن رجاء حدثنا إسرائيل عن أبي إسحاق
آخر سورة نزلت كاملة براءة وآخر سورة نزلت خاتمة سورة النساء {يستفتونك قل الله يفتيكم في الكلالة}