Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:8:32

And ˹remember˺ when they said, "O Allah, if this should be the truth from You, then rain down upon us stones from the sky or bring us a painful punishment."  

And when they said, ‘O God! If this, that Muhammad (s) recites, be indeed the truth, revealed, from You, then rain down stones upon us from the heaven, or bring on us a painful chastisement’, in return for ˹our˺ denial of it: this was said by al-Nadr and others, in mockery and in delusion that he had some insight and certainty about it ˹the Qur’ān˺ being false.
القرآن:٨:٣٢

وَإِذْ قَالُوا اللَّهُمَّ إِنْ كَانَ هَٰذَا هُوَ الْحَقَّ مِنْ عِنْدِكَ فَأَمْطِرْ عَلَيْنَا حِجَارَةً مِنَ السَّمَاءِ أَوِ ائْتِنَا بِعَذَابٍ أَلِيمٍ  

{وإذ قالوا اللهم إن كان هذا} الذي يقرؤه محمد {هو الحقَّ} المنزل {من عندك فأمطر علينا حجارة من السماء أو ائتنا بعذاب أليم} مؤلم على إنكاره قاله النصر، وغيره استهزاءً وإيهاما أنه على بصيرة وجزم ببطلانه.

See similar narrations below:

Collected by Ḥākim
hakim:3854Muḥammad b. ʿAlī al-Shaybānī Bi-al-Kūfah > Aḥmad b. Ḥāzim al-Ghifārī > ʿUbaydullāh b. Mūsá > Sufyān al-Thawrī > al-Aʿmash > Saʿīd b. Jubayr Saʾal Sāʾil Biʿadhāb Wāqiʿ Lilkāfirīn Lays Lah Dāfiʿ from Allāh Dhī al-Maʿārij al-Mʿārj 2 Dhī al-Darajāt Saʾal Sāʾil al-Mʿārj 1 > al-Naḍr b. al-Ḥārith b. Kaladah

[Machine] "O Allah, if this is the truth from You, then rain upon us stones from the sky."  

الحاكم:٣٨٥٤أَخْبَرَنَا مُحَمَّدُ بْنُ عَلِيٍّ الشَّيْبَانِيُّ بِالْكُوفَةَ ثنا أَحْمَدُ بْنُ حَازِمٍ الْغِفَارِيُّ ثنا عُبَيْدُ اللَّهِ بْنُ مُوسَى عَنْ سُفْيَانَ الثَّوْرِيِّ عَنِ الْأَعْمَشِ عَنْ سَعِيدِ بْنِ جُبَيْرٍ {سَأَلَ سَائِلٌ بِعَذَابٍ وَاقِعٍ لِلْكَافِرِينَ لَيْسَ لَهُ دَافِعٌ مِنَ اللَّهِ ذِي الْمَعَارِجِ} [المعارج 2] ذِي الدَّرَجَاتِ {سَأَلَ سَائِلٌ} [المعارج 1] قَالَ هُوَ النَّضْرُ بْنُ الْحَارِثِ بْنِ كَلَدَةَ قَالَ

«اللَّهُمَّ إِنْ كَانَ هَذَا هُوَ الْحَقَّ مِنْ عِنْدِكَ فَأَمْطِرْ عَلَيْنَا حِجَارَةً مِنَ السَّمَاءِ»  

هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ الشَّيْخَيْنِ وَلَمْ يُخَرِّجَاهُ على شرط البخاري