IBNHIBBAN 3704:
from Abū Hurayrah Dhakar —
[Machine] The messenger of Allah ﷺ delivered a sermon and said, "O people, surely Allah has made Hajj obligatory upon you." So, a man stood up and asked, "Is it obligatory every year, O messenger of Allah?" He remained silent until the man repeated the question three times. Then, he said, "If I were to say 'yes', it would become obligatory and if it became obligatory, you would not be able to fulfill it." Then, he said, "Indeed, those before you were destroyed due to their excessive questioning and disagreement with their prophets. So, when I forbid you from something, then stay away from it. And when I command you to do something, then do it to the best of your abilities." He also mentioned that the verse in Surah Al-Ma'idah was revealed during that incident: "O you who believe, do not ask about things which, if they are shown to you, will distress you."
ابن حبّان ٣٧٠٤:
عن ابو هريره ذكر —
أَنَّ رَسُولَ اللَّهِ ﷺ خَطَبَ فَقَالَ «يَا أَيُّهَا النَّاسُ إِنَّ اللَّهَ قَدِ افْتَرَضَ عَلَيْكُمُ الْحَجَّ» فَقَامَ رَجُلٌ فَقَالَ أَكُلُّ عَامٍ يَا رَسُولَ اللَّهِ؟ قَالَ فَسَكَتَّ عَنْهُ حَتَّى أَعَادَهَا ثَلَاثَ مَرَّاتٍ قَالَ «لَوْ قُلْتُ نَعَمْ لَوَجَبَتْ وَلَوْ وَجَبَتْ مَا قُمْتُمْ بِهَا ذَرُونِي مَا تَرَكْتُكُمْ فَإِنَّمَا هَلَكَ الَّذِينَ قَبْلَكُمْ بِكَثْرَةِ سُؤَالِهِمْ وَاخْتِلَافِهِمْ عَلَى أَنْبِيَائِهِمْ فَإِذَا نَهَيْتُكُمْ عَنْ شَيْءِ فَاجْتَنِبُوهُ وَإِذَا أَمَرْتُكُمْ بِشَيْءٍ فَأْتُوا مِنْهُ مَا اسْتَطَعْتُمْ» وَذَكَرَ أَنَّ هَذِهِ الْآيَةَ الَّتِي فِي الْمَائِدَةِ نَزَلَتْ فِي ذَلِكَ {يَا أَيُّهَا الَّذِينَ آمَنُوا لَا تَسْأَلُوا عَنْ أَشْيَاءَ إِنْ تُبْدَ لَكُمْ تَسُؤْكُمْ} «
hadithunlocked.com