Sure Al-Maaida

5:101

يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ لَا تَسْـَٔلُوا۟ عَنْ أَشْيَآءَ إِن تُبْدَ لَكُمْ تَسُؤْكُمْ وَإِن تَسْـَٔلُوا۟ عَنْهَا حِينَ يُنَزَّلُ ٱلْقُرْءَانُ تُبْدَ لَكُمْ عَفَا ٱللَّهُ عَنْهَا ۗ وَٱللَّهُ غَفُورٌ حَلِيمٌۭ

O die ihr glaubt, fragt nicht nach Dingen, die, wenn sie euch offengelegt werden, euch leid tun, wenn ihr nach ihnen fragt zu der Zeit, da der Qur'an offenbart wird, sie euch (gewiß) offengelegt werden, wo Allah sie übergangen hat. Und Allah ist Allvergebend und Nachsichtig.

Tafsir 5:101

O you who have faith in Allah, follow His Messenger and practise His laws, do not ask your Messenger about things which you do not in need, and which will not be of any help to you in your religion. If you were told of such things, they would upset you because of the difficulty in them. If, despite the prohibition, you ask about these things, then know that revelation is coming down to the Prophet and they will be made clear to you. That is easy for Allah. Allah has not said certain things in the Qur’ān, so do not ask about them. If you ask about them, you will have to follow the law that is then revealed.