Surah Luqman

31:23

وَمَن كَفَرَ فَلَا يَحْزُنكَ كُفْرُهُۥٓ ۚ إِلَيْنَا مَرْجِعُهُمْ فَنُنَبِّئُهُم بِمَا عَمِلُوٓا۟ ۚ إِنَّ ٱللَّهَ عَلِيمٌۢ بِذَاتِ ٱلصُّدُورِ

And whoever has disbelieved - let not his disbelief grieve you. To Us is their return, and We will inform them of what they did. Indeed, Allah is Knowing of that within the breasts.

Tafsir 31:23

O Messenger! Whoever disbelieves in Allah, let not their disbelief grieve you. To Me alone they will return on the Day of Judgement; I will inform them of the evils they committed in the world and requite them for them. Indeed, Allah knows what is in the hearts; nothing is hidden from Him.