The Masjid whose foundation was founded upon piety is the Masjid of the Prophet (ﷺ) saws in Al-Madinah
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَسَعِيدُ بْنُ عَمْرٍو الأَشْعَثِيُّ، قَالَ سَعِيدٌ أَخْبَرَنَا وَقَالَ أَبُو بَكْرٍ، حَدَّثَنَا حَاتِمُ بْنُ إِسْمَاعِيلَ، عَنْ حُمَيْدٍ، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي سَعِيدٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم بِمِثْلِهِ وَلَمْ يَذْكُرْ عَبْدَ الرَّحْمَنِ بْنَ أَبِي سَعِيدٍ فِي الإِسْنَادِ .
Abu Sa'id reported from Allah's Messenger (ﷺ) a hadlth like this, but in the chain of transmitters no mention was made of Abd al- Rahman b. Abu Sa'id.