It had been some six months since the last revelation and the Messenger ﷺ was being taunted by the Makkans “Your satan has deserted you.” He ﷺ was feeling very dejected and deserted by Allah. He wondered if Allah was displeased with him and did not want him as a Prophet anymore. Thus, Surah Ad-Duha was revealed to console and help the Messenger ﷺ to overcome anxiety and depression.