It is narrated from Ibn Tawoos (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever revives barren land, it belongs to him, and old lands are the property of Allah and His Messenger; then, from my side, they are for you."
Hadith Referenceمسند الإمام الشافعي / كتاب الشفعة والصلح وإحياء الموات / 1499
Hadith Takhrijاسناده ضعيف لإرساله : اخرجه البيهقي في المعرفة السنن والآثار (3737)۔