When their mockery and scorn went beyond limits, Allah Ta‘ala revealed the following verses to comfort Rasulullah (sallallahu ‘alaihi wasallam):
فَاصۡدَعۡ بِمَا تُؤۡمَرُ وَ اَعۡرِضۡ عَنِ الۡمُشۡرِکِیۡنَ ﴿۹۴﴾ اِنَّا کَفَیۡنٰکَ الۡمُسۡتَہۡزِءِیۡنَ ﴿ۙ۹۵﴾
So openly proclaim (O Muhammed (sallallahu ‘alaihi wasallam)) what you have been commanded, and (if the disbelievers refuse to accept then) turn away from the disbelievers. Verily, We will suffice you against those who mock. (Surah Hijr v. 94-95)
(Extracted from Seeratul Mustafa 1/221-222)