The meaning of the verse
The verse means: And fear a Day in which you will be returned to Allah; then every soul will be paid in full what it earned, and they will not be wronged. This verse comes right after the rulings on riba. After the commands to give up riba, to be content with the original amount and to give a debtor in hardship more time, this reminder that the real reckoning will be before Allah is the strongest cure for greed for wealth. The verse also declares justice: no one's good deed will be reduced, and no one will be loaded with a burden unjustly.
What the Companions said about the last verse
It is reported from 'Abdullah ibn 'Abbas (may Allah be pleased with him) that the last verse revealed to the Prophet ﷺ was this verse 281; Imam al-Bukhari mentions the verses of riba in a chapter of Sahih al-Bukhari and quotes this saying of his without a chain, and it is also narrated with a chain in other hadith books. Sahih al-Bukhari also contains his saying that the last verse was the verse of riba. These two statements do not contradict each other, because verse 281 is the closing part of those same verses on riba.
Al-Bara' ibn 'Azib (may Allah be pleased with him) said that the last verse was the verse of Kalalah in Surah An-Nisa (An-Nisa 4:176), and the last surah was Surah Bara'ah. Ibn 'Abbas described Surah An-Nasr as the last surah revealed complete. Scholars have reconciled these sayings by explaining that each Companion spoke according to his own knowledge, and some scholars hold that al-Bara' meant the last verse on the rulings of inheritance. According to many researchers, the very last verse overall is this verse 281.
“Al-yawma akmaltu lakum dinakum” and other questions
Many people think that “Al-yawma akmaltu lakum dinakum” (This day I have perfected your religion for you, Al-Ma'idah 5:3) is the last verse of the Quran. According to authentic narrations, it was revealed on the day of 'Arafah during the Farewell Hajj and declares that the religion has been completed, but some verses were revealed after it as well. Likewise, there are different views on how many days the Prophet ﷺ lived after the last verse; no authentic marfu' hadith (a saying traced back to the Prophet ﷺ) fixes this period, so no single number should be stated as certain.
Key lessons
That revelation ended with a reminder of the Hereafter shows that the centre of the whole religion is that a servant stays ready to answer before Allah. Linking the rulings on dealings, trade and debt to fear of the Hereafter teaches that honesty does not come from law alone but from taqwa (fear of Allah). The righteous predecessors were deeply moved by this verse; it is reported about Imam Sa'id ibn Jubair (may Allah have mercy on him) that on one occasion he repeated this verse more than twenty times.