فَوَرَبِّكَ لَنَسْأَلَنَّهُمْ أَجْمَعِين
So, by your Lord, We would most certainly question them all,
فَيَوْمَئِذٍ لَا يُسْأَلُ عَنْ ذَنْبِهِ إِنْسٌ وَلَا جَانٌّ
[Shakir 55:39] So on that day neither man nor jinni shall be asked about his sin
Obviously not, because the Qur’an is perfect
أَفَلَا يَتَدَبَّرُونَ الْقُرْآنَ ۚ وَلَوْ كَانَ مِنْ عِنْدِ غَيْرِ اللَّهِ لَوَجَدُوا فِيهِ اخْتِلَافًا كَثِيرًا
[Shakir 4:82] Do they not then meditate on the Quran? And if it were from any other than Allah, they would have found in it many a discrepancy.
There is a few explanations of the above Ayat
Firstly there is two types of questions in Arabic
The first is:
Which is to ask a question in in order to gain information and Allah already knows what was, is, will be, and would be even if it has not happened.
The second is
Which is to chastise the questioner. While having knowledge of what they have done.
And and there are other explanations, but I found this interesting