It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that he said: "We stayed in Madinah for two years before the Messenger of Allah (peace and blessings be upon him) came to us; (during that time) we used to build (and keep alive) mosques and establish the prayer."
I say: Muhammad bin Abd al-Rahman bin Abi Layla (may Allah have mercy on him) is da'if (weak).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1016
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«قلت: محمد بن عبد الرحمن بن أبي ليلى ضعيف»