Sunan Ibn Majah 2712
It was narrated from 'Amr bin Kharijah:
“The Prophet (ﷺ) addressed them when he was on his camel. His camel was chewing its cud and its saliva was dripping between my shoulders. He said: 'Allah (SWT) has allocated for each heir his share of the inheritance, so it is not permissible (to make) a bequest for an heir. The child belong to the bed and the adulterer gets the stone. Whoever claims to belong to someone other than his father, or (a freed slave) who claims that his Wala is for other than his Mavali, upon him will be the curse of Allah, the angels and all the people, and no charge nor equitable exchange will be accepted from him.” Or he said: “No equitable exchange nor change.”
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ، أَنْبَأَنَا سَعِيدُ بْنُ أَبِي عَرُوبَةَ، عَنْ قَتَادَةَ، عَنْ شَهْرِ بْنِ حَوْشَبٍ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ غَنْمٍ، عَنْ عَمْرِو بْنِ خَارِجَةَ، أَنَّ النَّبِيَّ صلى الله عليه وسلم خَطَبَهُمْ وَهُوَ عَلَى رَاحِلَتِهِ وَإِنَّ رَاحِلَتَهُ لَتَقْصَعُ بِجِرَّتِهَا وَإِنَّ لُغَامَهَا لَيَسِيلُ بَيْنَ كَتِفَىَّ قَالَ ‏"‏ إِنَّ اللَّهَ قَسَمَ لِكُلِّ وَارِثٍ نَصِيبَهُ مِنَ الْمِيرَاثِ فَلاَ يَجُوزُ لِوَارِثٍ وَصِيَّةٌ الْوَلَدُ لِلْفِرَاشِ وَلِلْعَاهِرِ الْحَجَرُ وَمَنِ ادَّعَى إِلَى غَيْرِ أَبِيهِ أَوْ تَوَلَّى غَيْرَ مَوَالِيهِ فَعَلَيْهِ لَعْنَةُ اللَّهِ وَالْمَلاَئِكَةِ وَالنَّاسِ أَجْمَعِينَ لاَ يُقْبَلُ مِنْهُ صَرْفٌ وَلاَ عَدْلٌ ‏"‏ ‏.‏ أَوْ قَالَ ‏"‏ عَدْلٌ وَلاَ صَرْفٌ ‏"‏ ‏.‏