The Prophet (peace and blessings be upon him) forbade people vying in pride with one another over the building and adornment of mosques.