The Prophet said: "Whoever hears the call and does not come, his prayer is not valid, except for those who have an excuse." (Using translation from Ibn Mājah 793)
أَنَّ النَّبِيَّ ﷺ قَالَ مَنْ سَمِعَ النِّدَاءَ فَلَمْ يُجِبْ فَلَا صَلَاةَ لَهُ إِلَّا مِنْ عُذْرٍ