(In the Name of Allah, the Most Gracious, the Most Merciful.
The Reason for the Revelation of Surat Ad-Duha
Imam Ahmad recorded from Jundub that he said, "The Prophet became ill, so he did not stand for prayer for a night or two. Then a woman came and said, `O Muhammad! I think that your devil has finally left you.' So Allah revealed,
(By the forenoon. By the night when it darkens. Your Lord has neither forsaken you nor hates you.)" Al-Bukhari, Muslim, At-Tirmidhi, An-Nasa'i, Ibn Abi Hatim and Ibn Jarir, all recorded this Hadith. This Jundub (who narrated it) is Ibn `Abdullah Al-Bajali Al-`Alaqi. In a narration from Al-Aswad bin Qays, he said that he heard Jundub say that Jibril was slow in coming to the Messenger of Allah . So the idolators said, "Muhammad's Lord has abandoned him." So Allah revealed,
وَأَمَّا السَّائِلَ فَلَا تَنْهَرْ (and as for the beggar, do not scold him....93:10). The verb tanhar is derived from nahr which means 'to scold'. The word sa'il means 'one who asks'. It includes a person who asks people's wealth, that is, a beggar, and it also includes the one who asks a question of knowledge, that is, an academic investigator. The Holy Prophet ﷺ has forbidden to berate either of them. The best course of action is to give the beggar something. If one is unable to give a beggar anything, one should at least apologise to him politely [ so as not to give him any further grief ]. Likewise, anyone who is searching knowledge and asks questions, it is forbidden to respond to him harshly and unkindly. The teacher should reply kindly and politely. However, if the investigator is unreasonable in his approach, it is permissible to scold him to the degree that is necessary.
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 6–10
The Prophet Muhammad was born an orphan. Then God provided him with the best of guardians. He went eagerly in search of the Truth. Then God opened the door of Truth for him. He was apparently without wealth. Then God made him prosperous through his wife, Khadijah. These are historical examples which show how Almighty God helps His subjects.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.