(85) باب فَضْلِ الْمَدِينَةِ وَدُعَاءِ النَّبِيِّ صلى الله عليه وسلم فِيهَا بِالْبَرَكَةِ وَبَيَانِ تَحْرِيمِها وَتَحْرِيمِ صَيْدِهَا وَشَجَرِهَا وَبَيَانِ حُدُودِ حَرَمِهَا
A hadith like this has been narrated on the authority of A'mash with the same chain of transmitters (but at the end) these words are added:
" He who violated the covenant with a Muslim, there is upon him the curse of Allah, of angels and of all people. Neither an obligatory act nor a supererogatory act would be accepted from him as recompense on the Day of Resurrection; and in the hadith transmitted by two other narrators these words are not found:" He who claimed false paternity." And in the hadith transmitted by Waki' there is no mention of the Day of Resurrection.
Reference: Sahih Muslim 1370 b
In-book reference: Book 15, Hadith 532
USC-MSA web (English) reference(deprecated numbering scheme): Book 7, Hadith 3164