Mishkat al-Masabih 25
وَعَنْ أَنَسِ بْنِ مَالِكٍ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَمُعَاذٌ رديفه على الرحل قَالَ: «يَا معَاذ بن جبل قَالَ لَبَّيْكَ يَا رَسُولَ اللَّهِ وَسَعْدَيْكَ قَالَ يَا مُعَاذُ قَالَ لَبَّيْكَ يَا رَسُولَ اللَّهِ وَسَعْديك ثَلَاثًا قَالَ مَا مِنْ أَحَدٍ يَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللَّهُ وَأَنَّ مُحَمَّدًا رَسُولُ اللَّهِ صِدْقًا مِنْ قَلْبِهِ إِلَّا حَرَّمَهُ اللَّهُ عَلَى النَّارِ قَالَ يَا رَسُولَ اللَّهِ أَفَلَا أُخْبِرُ بِهِ النَّاس فيستبشروا قَالَ إِذا يتكلوا وَأخْبر بِهَا مُعَاذٌ عِنْدَ مَوْتِهِ تَأَثُّمًا»
From Anas ibn Malik that the Prophet ﷺ, while Muʿadh was riding behind him on the saddle, said: "O Muʿadh ibn Jabal." He said: "At your service, O Messenger of Allah, and at your call." He said: "O Muʿadh." He said: "At your service, O Messenger of Allah, and at your call" three times. He said: "There is no one who testifies that there is no god but Allah and that Muhammad is the Messenger of Allah, truthfully from his heart, except that Allah forbids him to the Fire." He said: "O Messenger of Allah, shall I not tell the people of it so they may rejoice?" He said: "Then they would rely on it." And Muʿadh told of it at the time of his death, out of fear of sin.