Anas bin Malik reported,

He traced it back to the Prophet ﷺ, who said, "Allah will say to the person receiving the lightest punishment among the people of the Fire, 'If you possessed everything on earth, would you offer it as ransom?'The man will reply, 'Yes.'Allah will say, 'I asked of you something far easier than this while you were still in the loins of Adam, that you not associate anything with Me, yet you refused and insisted on associating partners with Me.'"

Bukhari 3334

Sahih

حدثنا قيس بن حفص حدثنا خالد بن الحارث حدثنا شعبة عن أبي عمران الجوني

عن أنس

يرفعه إن الله يقول لأهون أهل النار عذابا لو أن لك ما في الأرض من شيء كنت تفتدي به قال نعم قال فقد سألتك ما هو أهون من هذا وأنت في صلب آدم أن لا تشرك بي فأبيت إلا الشرك

البخاري 3334صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hadiths of the prophets
Chapter
Creation of Adam, peace be upon him, and his descendants
Numbering
Darussalam 3334
Bukhari 3334