(36) Tribulations
كتاب الفتن
(22) Chapter: Punishments
(22) باب الْعُقُوبَاتِ ‏
Sunan Ibn Majah 4021 
It was narrated from Bara’ bin ‘Azib that the Messenger of Allah (ﷺ) said:
“Allah will curse them and those who curse will curse them.” He said: “The inhabitants of the earth.”
حَدَّثَنَا مُحَمَّدُ بْنُ الصَّبَّاحِ، حَدَّثَنَا عَمَّارُ بْنُ مُحَمَّدٍ، عَنْ لَيْثٍ، عَنِ الْمِنْهَالِ، عَنْ زَاذَانَ، عَنِ الْبَرَاءِ بْنِ عَازِبٍ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏"‏ ‏{يَلْعَنُهُمُ اللَّهُ وَيَلْعَنُهُمُ اللاَّعِنُونَ }‏ ‏"‏ ‏.‏ قَالَ ‏"‏ دَوَابُّ الأَرْضِ ‏"‏ ‏.‏
Grade :  Da’if (Darussalam)
Reference : Sunan Ibn Majah 4021
In-book reference : Book 36, Hadith 96
English translation : Vol. 5, Book 36, Hadith 4021