It is obligatory for the one who hears the call to prayer to come to the masjid
باب يَجِبُ إِتْيَانُ الْمَسْجِدِ عَلَى مَنْ سَمِعَ النِّدَاءَ
Sahih Muslim, Book of The Book of Mosques and Places of Prayer(view book)
Sahih Muslim 653
Abu Huraira reported: There came to the Apostle of Allah ﷺ a blind man and said: Messenger of Allah, I have no one to guide me to the mosque. He, therefore, asked. Messenger of Allah ﷺ permission to say prayer in his house. He (tee Holy Prophet) granted him permission. Then when the man turned away he called him and said: Do you hear the call to prayer? He said: Yes. He (the Holy Prophet then) said: Respond to it.
وَحَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، وَإِسْحَاقُ بْنُ إِبْرَاهِيمَ، وَسُوَيْدُ بْنُ سَعِيدٍ، وَيَعْقُوبُ الدَّوْرَقِيُّ، كُلُّهُمْ عَنْ مَرْوَانَ الْفَزَارِيِّ، - قَالَ قُتَيْبَةُ حَدَّثَنَا الْفَزَارِيُّ، - عَنْ عُبَيْدِ اللَّهِ بْنِ الأَصَمِّ، قَالَ حَدَّثَنَا يَزِيدُ بْنُ الأَصَمِّ، عَنْ أَبِي هُرَيْرَةَ، قَالَ أَتَى النَّبِيَّ ﷺ رَجُلٌ أَعْمَى فَقَالَ يَا رَسُولَ اللَّهِ إِنَّهُ لَيْسَ لِي قَائِدٌ يَقُودُنِي إِلَى الْمَسْجِدِ . فَسَأَلَ رَسُولَ اللَّهِ ﷺ أَنْ يُرَخِّصَ لَهُ فَيُصَلِّيَ فِي بَيْتِهِ فَرَخَّصَ لَهُ فَلَمَّا وَلَّى دَعَاهُ فَقَالَ " هَلْ تَسْمَعُ النِّدَاءَ بِالصَّلاَةِ " . فَقَالَ نَعَمْ . قَالَ " فَأَجِبْ " .