Name and why it is called so
The surah takes its name from its first word, "Wad-duha" (By the morning brightness). Ad-duha is the forenoon, the time of daylight after the sun has risen high, which is why people also commonly call it Surah Wad-Duha. The first two verses swear by the light of the day and the still darkness of the night, as if to say: just as day comes after night, light returned after the pause in revelation.
Time of revelation and background
This surah was revealed in Mecca. Sahih al-Bukhari narrates from Jundub ibn Sufyan (may Allah be pleased with him) that the Prophet ﷺ fell ill and could not stand for the night prayer for a night or two, and a woman taunted him, saying that it seemed he had been abandoned. A narration in Sahih Muslim says that Jibril (Gabriel), peace be upon him, was delayed in coming, so the idolaters said that Muhammad had been abandoned. At this, Allah revealed "Wad-duha, wal-layli idha saja, ma wadda'aka rabbuka wa ma qala" (By the morning brightness, and by the night when it is still, your Lord has neither forsaken you nor hated you).
Main themes
After the oaths, Allah declares that your Lord has neither forsaken you nor is He displeased with you; what is to come will be better for you than what has gone, and your Lord will give you so much that you will be pleased. Then three favors are recalled: you were an orphan and Allah gave you shelter, you were unaware of the way and He guided you, and you were in need and He made you self-sufficient.
In gratitude for these favors, three instructions are given: do not be harsh with the orphan, do not repulse the one who asks, and keep speaking of your Lord's blessings. This message of the tafsir of Surah Ad-Duha is for every believer: do not despair of Allah's mercy in hard times, remember past blessings, and make gentleness toward the weak the practical expression of gratitude.