2:108
أَمْ تُرِيدُونَ أَن تَسْـَٔلُوا۟ رَسُولَكُمْ كَمَا سُئِلَ مُوسَىٰ مِن قَبْلُ ۗ وَمَن يَتَبَدَّلِ ٱلْكُفْرَ بِٱلْإِيمَٰنِ فَقَدْ ضَلَّ سَوَآءَ ٱلسَّبِيلِ
Or do you intend to ask your Messenger as Moses was asked before? And whoever exchanges faith for disbelief has certainly strayed from the soundness of the way.
Translation · Saheeh International
Tafsir
Ibn Kathīr (abridged)
The Prohibition of Unnecessary Questions
In this Ayah, Allah forbade the believers from asking the Prophet numerous questions about matters that did not occur yet. Similarly, Allah said,
يأَيُّهَا الَّذِينَ ءَامَنُواْ لاَ تَسْأَلُواْ عَنْ أَشْيَآءَ إِن تُبْدَ لَكُمْ تَسُؤْكُمْ وَإِن تَسْأَلُواْ عَنْهَا حِينَ يُنَزَّلُ الْقُرْءَانُ تُبْدَ لَكُمْ
(O you who believe! Ask not about things which, if made plain to you, may cause you trouble. But if you ask about them while the Qur'an is being revealed, they will be made plain to you) (5:101).
This Ayah means, "If you ask about a matter after it is revealed, it shall be duly explained to you. Therefore, do not ask about matters that have not occurred yet, for they might become prohibited, due to your questions." This is why the Sahih narrated,
«إِنَّ أَعْظَمَ الْمُسْلِمِينَ جُرْمًا مَنْ سَأَلَ عَنْ شَيْءٍ لَمْ يُحَرَّمْ، فَحُرِّمَ مِنْ أَجْلِ مَسْأَلَتِه»