Sahl bin Saad reported,

Uwaymir came to Asim bin Adi, who was the chief of Banu Ajlan, and asked, "What do you say about a man who finds another man with his wife? Should he kill him, or what should he do? Ask the Messenger of Allah ﷺ about this for me."So Asim went to the Prophet ﷺ and said, "Messenger of Allah..." but the Messenger of Allah ﷺ disliked such questions.Uwaymir later questioned Asim, who told him, "The Messenger of Allah ﷺ truly disliked these questions and found them objectionable."Uwaymir said, "By Allah, I will not stop until I ask the Messenger of Allah ﷺ about this myself..." and so on.

Azami 1290

Sahih

عن سهل بن سعد

أن عويمرا أتى عاصم بن عدي- وكان سيد بني عجلان- فقال: كيف تقولون في رجل وجد مع امرأته رجلا أيقتله، أم كيف يصنع به؟ سل لي رسول الله ﷺ عن ذلك. فأتى عاصم النبي ﷺ فقال: يا رسول الله، فكره رسول الله ﷺ المسائل. فسأله عويمر، فقال: إن رسول الله ﷺ لكره المسائل وعابها. قال عويمر: والله لا أنتهي حتى أسأل رسول الله ﷺ عن ذلك… إلخ.

الأعظمي 1290صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Knowledge
Chapter
Warnings in matters of knowledge
Section
Prohibition of excessive questioning about what has not occurred and about which no revelation has been sent down
Numbering
Jami al-Kamil 1290 (2nd edition)
Azami 1290