Allah says in surah al-Saffat:
بَلْ عَجِبْتَ وَيَسْخَرُونَ * وَإِذَا ذُكِّرُوا لَا يَذْكُرُونَ * وَإِذَا رَأَوْا آيَةً يَسْتَسْخِرُونَ * وَقَالُوا إِنْ هَٰذَا إِلَّا سِحْرٌ مُّبِينٌ
But you are amazed while they mock * and when they are reminded they do not remember * and when they see a sign, they mock * saying, “This is nothing but obvious magic.” [37:12-15]
Commenting on this in his book of tafsir, Abu Muhammad al-Baghawi wrote:
ـ ( بل عجبت ) قرأ حمزة ، والكسائي : بضم التاء ، وهي قراءة ابن مسعود ، وابن عباس . والعجب من الله – عز وجل – ليس كالتعجب من الآدميين ، كما قال : ” فيسخرون منهم سخر الله منهم ” ( التوبة – 79 ) ، وقال عز وجل : ” نسوا الله فنسيهم ” ( التوبة – 67 ) ، فالعجب من الآدميين : إنكاره وتعظيمه ، والعجب من الله – تعالى – قد يكون بمعنى الإنكار والذم ، وقد يكون بمعنى الاستحسان والرضا كما جاء في الحديث : ” عجب ربكم من شاب ليست له صبوة ” . وجاء في الحديث : ” عجب ربكم من سؤالكم وقنوطكم وسرعة إجابته إياكم ” . وسئل الجنيد عن هذه الآية فقال : إن الله لا يعجب من شيء ، ولكن الله وافق رسوله لما عجب رسوله فقال : ” وإن تعجب فعجب قولهم ” ( الرعد – 5 ) أي : هو كما تقوله . وقرأ الآخرون بفتح التاء على خطاب النبي – صلى الله عليه وسلم – : أي : عجبت من تكذيبهم إياك ، ) ( ويسخرون ) من تعجبك . ـ
بَلْ عَجِبْتَ
But you are amazed …
Hamzah and al-Kisaa’i recited this with a dhummah on the letter taa’
بَلْ عَجِبْتُ
But I was amazed …
which is also how ibn Mas’ood and ibn ‘Abbaas recited it. And this word “‘ajab” from Allah is not like the amazement of human beings. This is similar to the usage of other terms, such as:
فَيَسْخَرُونَ مِنْهُمْ ۙ سَخِرَ اللَّهُ مِنْهُمْ
… so they mock them and Allah mocks them … [9:79]
and His statement:
نَسُوا اللَّهَ فَنَسِيَهُمْ
They forgot Allah so He forgot them … [9:67]
‘Ajab from human beings means: disapproving of something and treating it as a serious offense.
‘Ajab from Allah means: either
a) disapproval and censure, or
b) approval and pleasure
such as in the hadith, “Your Lord is amazed at one who goes through youth without falling into the foolish sins of youth.” And there is also the hadith, “Your Lord is amazed when you ask and then despair despite how quickly He responds to you.”
al-Junayd was asked about this ayah to which he said, “Your Lord is not amazed by anything; rather, Allah was expressing agreement with His Messenger when His Messenger was amazed, for He said:
وَإِن تَعْجَبْ فَعَجَبٌ قَوْلُهُمْ
If you are amazed, then amazing indeed is their statement … [13:5]
i.e. yes, the situation is as you have assessed it.”