It is narrated from Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) that he said: "No Muslim goes to visit any place on earth, or comes to a mosque built of stones, and then prays in it, except that the earth says: '(Here is) one devoted to Allah in His earth, sincere and single-minded in worshipping Him, and I will bear witness for you on the Day of Resurrection.'"
This chain is da'if (weak) because the Successor (Tabi'i) in it is unknown.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 972