Hadithcore
Mishkat al-Masabih, 2979

Rafi‘ b. Khadij reported the Prophet (ﷺ) as saying, “If anyone sows in other people’s land without their permission he has no right to any of the crop, but he may have what it cost him.” Tirmidhi and Abu Dawud transmitted it, Tirmidhi saying this is a <i>gharib</i> tradition.

عَنْ رَافِعِ بْنِ خَدِيجٍ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «مَنْ زَرَعَ فِي أَرْضِ قَوْمٍ بِغَيْرِ إِذْنِهِمْ فَلَيْسَ لَهُ مِنَ الزَّرْعِ شَيْءٌ وَلَهُ نَفَقَتُهُ» . رَوَاهُ التِّرْمِذِيُّ وَأَبُو دَاوُدَ وَقَالَ التِّرْمِذِيُّ: هَذَا حَدِيثٌ غَرِيبٌ

References1 variant
In-Book Reference
Book 11, Hadith 213