Name and why it is called so
The surah takes its name from the words nasrullah (the help of Allah) in its first verse. In the hadith it is referred to by its first verse, "Idha ja'a nasrullahi wal-fath" (When the help of Allah and the conquest come). A narration in Sahih Muslim explains that the conquest here means the Conquest of Mecca.
Time of revelation and background
This is a Medinan surah, revealed in the last period of the Prophet's ﷺ blessed life. Sahih Muslim reports that Ibn Abbas asked his student Ubaydullah ibn Abdullah: Do you know which was the last surah of the Quran to be revealed complete all at once? He said: "Idha ja'a nasrullahi wal-fath," and Ibn Abbas said: You have spoken the truth. After the Conquest of Mecca, the tribes of Arabia began coming to Medina delegation after delegation to accept Islam, and this is the scene mentioned in the second verse.
Main themes
The surah contains three things: first, the news that Allah's help and the conquest have come; second, people entering the religion of Allah in crowds; and third, the command, in gratitude for this blessing, to glorify one's Lord with His praise and seek His forgiveness, for He accepts repentance again and again. The lesson is that at the time of success one should adopt humility, gratitude and seeking forgiveness instead of pride.
According to Sahih al-Bukhari, Umar asked about the meaning of this surah in a gathering of the Companions who had fought at Badr, and Ibn Abbas said that it informed Allah's Messenger ﷺ that his death was near; Umar said: I understand the same from it. Aisha (may Allah be pleased with her) relates that after its revelation the Prophet ﷺ began to say words of glorification and seeking forgiveness abundantly in every prayer.