Mishkat al-Masabih
Mishkat al-Masabih 3793
وَعَن سلمانَ الفارسيِّ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ: «رِبَاطُ يَوْمٍ وَلَيْلَةٍ فِي سَبِيلِ اللَّهِ خَيْرٌ مِنْ صِيَامِ شَهْرٍ وَقِيَامِهِ وَإِنْ مَاتَ جَرَى عَلَيْهِ عَمَلُهُ الَّذِي كَانَ يَعْمَلُهُ وَأُجْرِيَ عَلَيْهِ رِزْقُهُ وَأَمِنَ الْفَتَّانَ» . رَوَاهُ مُسْلِمٌ
Salman al-Farisi reported: I heard the Messenger of God say: A day and a night of guarding the frontier in God's cause is better than a month of fasting and prayer. If a person dies while doing so, the deeds he used to perform will continue to be credited to him, his provision will continue to be granted, and he will be safe from the tester. Muslim transmitted it.
Translation notes
The Arabic uses the phrase al-fattan, the tester; it does not specify further here.