Hadithcore
Sunan Abi Dawud, 551

Narrated Abdullah ibn Abbas:

If anyone hears him who makes the call to prayer and is not prevented from joining the congregation by any excuse--he was asked what an excuse consisted of and replied that it was fear or illness--the prayer he offers will not be accepted from him.

حَدَّثَنَا قُتَيْبَةُ، حَدَّثَنَا جَرِيرٌ، عَنْ أَبِي جَنَابٍ، عَنْ مَغْرَاءٍ الْعَبْدِيِّ، عَنْ عَدِيِّ بْنِ ثَابِتٍ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، عَنِ ابْنِ عَبَّاسٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ مَنْ سَمِعَ الْمُنَادِيَ فَلَمْ يَمْنَعْهُ مِنَ اتِّبَاعِهِ عُذْرٌ ‏"‏ ‏.‏ قَالُوا وَمَا الْعُذْرُ قَالَ خَوْفٌ أَوْ مَرَضٌ ‏"‏ لَمْ تُقْبَلْ مِنْهُ الصَّلاَةُ الَّتِي صَلَّى ‏"‏ ‏.‏ قَالَ أَبُو دَاوُدَ رَوَى عَنْ مَغْرَاءٍ أَبُو إِسْحَاقَ ‏.‏

References2 variants
In-Book Reference
Book 2, Hadith 161
English Reference
Book 2, Hadith 551