عَنْ عَمْرِو بْنِ خَارِجَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ خَطَبَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ وَهُوَ عَلَى نَاقَتِهِ فِي رِوَايَةٍ خَطَبَنَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ بِمِنًى وَهُوَ عَلَى رَاحِلَتِهِ وَأَنَا تَحْتَ جِرَانِهَا وَهِيَ تَقْصَعُ بِجِرَّتِهَا وَلُعَابُهَا يَسِيلُ بَيْنَ كَتِفَيَّ قَالَ إِنَّ اللَّهَ عَزَّ وَجَلَّ أَعْطَى لِكُلِّ ذِي حَقٍّ حَقَّهُ وَلَا وَصِيَّةَ لِوَارِثٍ وَالْوَلَدُ لِلْفِرَاشِ وَلِلْعَاهِرِ الْحَجَرُ وَمَنِ ادَّعَى إِلَى غَيْرِ أَبِيهِ أَوِ انْتَمَى إِلَى غَيْرِ مَوَالِيهِ فَعَلَيْهِ لَعْنَةُ اللَّهِ وَالْمَلَائِكَةِ وَالنَّاسِ أَجْمَعِينَ لَا يُقْبَلُ مِنْهُ صَرْفٌ وَلَا عَدْلٌ
It is narrated from Sayyiduna Amr bin Kharijah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) delivered a sermon in Mina while riding on his she-camel. At that time, I was standing under the neck of the she-camel, and she was standing very calmly, chewing the cud, and her saliva was even falling on me. The Prophet (peace and blessings be upon him) said: Surely Allah Almighty has given every rightful person his due right. No bequest can be made in favor of any legal heir. The child will be attributed to the one on whose bed he is born. Whoever claims the child’s lineage falsely is a fornicator and deserves to be stoned. And whoever attributes himself to anyone other than his father, upon him is the curse of Allah, the angels, and all people. None of his obligatory or voluntary acts of worship will be accepted.