DARIMI 2906:
from Ibn ʿAbbās —
[Machine] The Messenger of Allah ﷺ said: "Whoever claims to have a relationship with someone other than his biological father, or supports those who are not his legal guardians, those who have freed him from slavery, then upon him is the curse of Allah, the angels, and all people, until the Day of Judgment. His expenditures and testimonies will not be accepted."
الدارمي ٢٩٠٦:
عن ابن عباس —
قَالَ رَسُولُ اللَّهِ ﷺ «أَيُّمَا رَجُلٍ ادَّعَى إِلَى غَيْرِ وَالِدِهِ أَوْ تَوَلَّى غَيْرَ مَوَالِيهِ الَّذِينَ أَعْتَقُوهُ فَإِنَّ عَلَيْهِ لَعْنَةَ اللَّهِ وَالْمَلَائِكَةِ وَالنَّاسِ أَجْمَعِينَ إِلَى يَوْمِ الْقِيَامَةِ لَا يُقْبَلُ مِنْهُ صَرْفٌ وَلَا عَدْلٌ»
hadithunlocked.com