Thawban reported,

I was standing beside the Messenger of Allah ﷺ when one of the Jewish rabbis came and said, "Peace be upon you, Muhammad."I shoved him so hard he nearly fell. He said, "Why did you push me?"I replied, "Why don't you say, 'Messenger of Allah'?"The Jew said, "We only call him by the name his family gave him."The Messenger of Allah ﷺ said, "My name is Muhammad, the name my family gave me."The Jew said, "I have come to ask you something."The Messenger of Allah ﷺ said to him, "Will it benefit you at all if I tell you?"He answered, "I will hear it with my own ears."The Messenger of Allah ﷺ began poking the ground with a stick he had with him and said, "Ask."The Jew said, "Where will people be on the Day when the earth is changed into another earth, and likewise the heavens?"The Messenger of Allah ﷺ said, "They will be in darkness, before the bridge."He asked, "Who will be the first to cross?"He answered, "The poor among the emigrants."The Jew asked, "What will be their welcoming gift when they enter Paradise?"He replied, "An extra lobe of the fish's liver."He asked, "What will be their food after that?"He answered, "The bull of Paradise, which used to graze at its outskirts, will be slaughtered for them."He asked, "And what will be their drink with it?"He answered, "From a spring there called Salsabil."The Jew said, "You have spoken the truth." Then he said, "I have also come to ask you about something that no one on earth knows except a prophet, or one man, or perhaps two."The Prophet said, "Will it benefit you if I tell you?"He answered, "I will hear it with my own ears."He said, "I have come to ask you about the child."The Prophet said, "The man's fluid is white and the woman's fluid is yellow. When they meet, if the man's fluid prevails over the woman's, the child will be male by Allah's permission, and if the woman's fluid prevails over the man's, the child will be female by Allah's permission."The Jew said, "You have indeed spoken the truth, and you are truly a prophet." Then he turned and left.The Messenger of Allah ﷺ said, "This man has just asked me about matters of which I had no knowledge until Allah brought it to me."

Azami 9705

Sahih

عن ثوبان مولى رسول الله ﷺ حدثه قال

كنت قائما عند رسول الله ﷺ، فجاء حبر من أحبار اليهود فقال: السلام عليك يا محمد! فدفعته دفعة كاد يصرع منها، فقال: لم تدفعني؟ فقلت: ألا تقول يا رسول الله! فقال اليهودي: إنما ندعوه باسمه الذي سماه به أهله، فقال رسول الله ﷺ: إن اسمي محمد الذي سماني به أهلي فقال اليهودي: جئت أسألك، فقال له رسول الله ﷺ: أينفعك شيء إن حدثتك؟ قال: أسمع بأذني، فنكت رسول الله ﷺ بعود معه، فقال: سل فقال اليهودي: أين يكون الناس يوم تبدل الأرض غير الأرض والسماوات؟ فقال رسول الله ﷺ: هم في الظلمة دون الجسر قال: فمن أول الناس إجازة؟ قال: فقراء المهاجرين قال اليهودي: فما تحفتهم حين يدخلون الجنة؟ قال: زيادة كبد النون قال: فما غذاؤهم على إثرها؟ قال: ينحر لهم ثور الجنة الذي كان يأكل من أطرافها: قال فما شرابهم عليه؟ قال: من عين فيها تسمى سلسبيلا قال: صدقت، قال: وجئت أسألك عن شيء لا يعلمه أحد من أهل الأرض، إلا نبي أو رجل أو رجلان قال: ينفعك إن حدثتك؟ قال: أسمع بأذني، قال: جئت أسألك عن الولد؟ قال: ماء الرجل أبيض وماء المرأة أصفر، فإذا اجتمعا، فعلا مني الرجل مني المرأة أذكرا بإذن الله، وإذا علا مني المرأة مني الرجل أنثا بإذن الله قال اليهودي: لقد صدقت، وإنك لنبي، ثم انصرف فذهب فقال رسول الله ﷺ: لقد سألني هذا عن الذي سألني عنه، وما لي علم بشيء منه، حتى أتاني الله به.

الأعظمي 9705صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Miracles of the Prophet ﷺ and proofs of his prophethood
Section
Prophet ﷺ answering some questions that none among mankind knows except the Prophet ﷺ
Numbering
Jami al-Kamil 9705 (2nd edition)
Azami 9705