عَنْ أَبِي سَعِيدٍ سَعْدِ بْنِ مَالِكِ بْنِ سِنَانٍ الْخُدْرِيّ رَضِيَ اللهُ عَنْهُ أَنَّ رَسُولَ اللَّهِ صلى الله عليه و سلم قَالَ: لَا ضَرَرَ وَلَا ضِرَارَ
Meaning: The Messenger of Allah ﷺ said: There is to be no harm and no returning of harm.
An-Nawawi: hasan, with routes that strengthen each other. Al-Albani: sahih. Shu'ayb al-Arna'ut: sahih by others. Zubair Ali Zai: weak. Ibn Rajab says Abu Sa'id's own wording is with ad-Daraqutni, al-Hakim and al-Bayhaqi, not Ibn Majah, whose wordings come from other Companions.
Narrated by Abu Sa'id al-Khudri · Sunan Ibn Majah 2340 (from Ubadah) and 2341 (from Ibn Abbas); Muwatta Malik 1432 (mursal)