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:57:8

And why do you not believe in Allah while the Messenger invites you to believe in your Lord and He has taken your covenant, if you should ˹truly˺ be believers?  

And why should you not believe — an address to the disbelievers — in other words, there is nothing to prevent you from believing, in God when the Messenger is calling you to believe in your Lord, and a pledge has been taken from you (reading ˹it as˺ ukhidha mīthāqukum; otherwise akhadha mīthāqakum, ‘He has taken a pledge from you’) concerning it — that is to say, God took this ˹pledge from you˺ in the world of atoms when He made them bear witness against themselves: ‘Am I not your Lord?’ They said, ‘Yea, indeed’ ˹Q. 7:172˺ — if you are believers?, that is to say, if your intention is to believe in Him, then apply yourselves to this ˹duty of faith˺.
القرآن:٥٧:٨

وَمَا لَكُمْ لَا تُؤْمِنُونَ بِاللَّهِ ۙ وَالرَّسُولُ يَدْعُوكُمْ لِتُؤْمِنُوا بِرَبِّكُمْ وَقَدْ أَخَذَ مِيثَاقَكُمْ إِنْ كُنْتُمْ مُؤْمِنِينَ  

(وما لكم لا تؤمنون) خطاب للكفار، أي لا مانع لكم من الإيمان (بالله والرسول يدعوكم لتؤمنوا بربكم وقد أخذ) بضم الهمزة وكسر الخاء وبفتحها ونصب ما بعده (ميثاقكم) عليه أي أخذه الله في عالم الذر حين أشهدهم على أنفسهم "" ألست بربكم قالوا بلى "" (إن كنتم مؤمنين) أي مريدين الإيمان به فبادروا إليه.