It is narrated from Ibn Tawus (may Allah have mercy on him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever revives something of barren land, he has the right over it; and the land is first for Allah and His Messenger (peace and blessings be upon him), and for you afterwards."
In one narration the wording is: "Then it is yours from me."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب إحياء الموات / 11783
Tawus (may Allah have mercy on him) says that the Messenger of Allah (peace and blessings be upon him) said: "The land is first for Allah and His Messenger (peace and blessings be upon him), then for you afterwards. So whoever revives barren land, he is the one entitled to the right over it."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب إحياء الموات / 11784
It is reported from Ibn Abbas (may Allah be pleased with them both): "The land is first for Allah and His Messenger (peace and blessings be upon him), and for you afterwards. So whoever revives barren land, he is more entitled to it."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب إحياء الموات / 11785
It is reported from Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Barren land is for Allah and His Messenger (peace and blessings be upon him). So whoever revives barren land, it is his."
Only Mu'awiyah bin Hisham narrated it as marfu' (attributed to the Prophet) with a connected chain.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب إحياء الموات / 11786