It is known that prayers are accepted wherever you perform them — washrooms and graveyards notwithstanding — and that it is not required to go to an actual masjid building to pray. As the prophet said,
The whole earth is a mosque for you, so pray wherever you are when the time for prayer comes.
However, I was wondering if there is any solid evidence that praying in the masjid itself has any benefit. I am aware of numerous hadiths which indicate that praying in congregation is much more blessed than praying alone (which is easier to arrange when you're at a masjid,) and also of hadiths which emphasize the importance of responding to the adhan (which is usually called from a masjid), and even many which explicitly mention the masjid itself (but clearly in the context of either the congregation or the adhan as above, rather than the actual building), but I don't know of any clear evidences that even this congregational prayer is more valuable inside an actual masjid compared to being prayed just anywhere.
Does praying in a masjid give extra reward than praying outside of one?