I heard Kaʿb bin Malik who was one of the three who were forgiven, saying that he had never remained behind Messenger of Allah ﷺ in any Ghazwa which he had fought except two Ghazwat Ghazwat- Al-ʿUsra (Tabuk) and Ghazwat-Badr. He added. "I decided to tell the truth to Messenger of Allah ﷺ in the forenoon, and scarcely did he return from a journey he made, except in the forenoon, he would go first to the mosque and offer a two-rakʿat prayer. The Prophet ﷺ forbade others to speak to me or to my two companions, but he did not prohibit speaking to any of those who had remained behind excepting us. So the people avoided speaking to us, and I stayed in that state till I could no longer bear it, and the only thing that worried me was that I might die and the Prophet ﷺ would not offer the funeral prayer for me, or Messenger of Allah ﷺ might die and I would be left in that social status among the people that nobody would speak to me or offer the funeral prayer for me. But Allah revealed His Forgiveness for us to the Prophet ﷺ in the last third of the night while Messenger of Allah ﷺ was with Um Salama. Um Salama sympathized with me and helped me in my disaster. Messenger of Allah ﷺ said, 'O Um Salama! Kaʿb has been forgiven!' She said, 'Shall I send someone to him to give him the good tidings?' He said, 'If you did so, the people would not let you sleep the rest of the night.' So when the Prophet ﷺ had offered the Fajr prayer, he announced Allah's Forgiveness for us. His face used to look as bright as a piece of the (full) moon whenever he was pleased. When Allah revealed His Forgiveness for us, we were the three whose case had been deferred while the excuse presented by those who had apologized had been accepted. But when there were mentioned those who had told the Prophet ﷺ lies and remained behind (the battle of Tabuk) and had given false excuses, they were described with the worse description one may be described with. Allah said: 'They will present their excuses to you (Muslims) when you return to them. Say: Present no excuses; we shall not believe you. Allah has already informed us of the true state of matters concerning you. Allah and His Apostle will observe your actions." (9.94)
عَنْ رَسُولِ اللَّهِ ﷺ فِي غَزْوَةٍ غَزَاهَا قَطُّ غَيْرَ غَزْوَتَيْنِ غَزْوَةِ الْعُسْرَةِ وَغَزْوَةِ بَدْرٍ قَالَ فَأَجْمَعْتُ صِدْقَ رَسُولِ اللَّهِ ﷺ ضُحًى وَكَانَ قَلَّمَا يَقْدَمُ مِنْ سَفَرٍ سَافَرَهُ إِلاَّ ضُحًى وَكَانَ يَبْدَأُ بِالْمَسْجِدِ فَيَرْكَعُ رَكْعَتَيْنِ وَنَهَى النَّبِيُّ ﷺ عَنْ كَلاَمِي وَكَلاَمِ صَاحِبَىَّ وَلَمْ يَنْهَ عَنْ كَلاَمِ أَحَدٍ مِنَ الْمُتَخَلِّفِينَ غَيْرِنَا فَاجْتَنَبَ النَّاسُ كَلاَمَنَا فَلَبِثْتُ كَذَلِكَ حَتَّى طَالَ عَلَىَّ الأَمْرُ وَمَا مِنْ شَىْءٍ أَهَمُّ إِلَىَّ مِنْ أَنْ أَمُوتَ فَلاَ يُصَلِّي عَلَىَّ النَّبِيُّ ﷺ أَوْ يَمُوتَ رَسُولُ اللَّهِ ﷺ فَأَكُونَ مِنَ النَّاسِ بِتِلْكَ الْمَنْزِلَةِ فَلاَ يُكَلِّمُنِي أَحَدٌ مِنْهُمْ وَلاَ يُصَلِّي عَلَىَّ فَأَنْزَلَ اللَّهُ تَوْبَتَنَا عَلَى نَبِيِّهِ ﷺ حِينَ بَقِيَ الثُّلُثُ الآخِرُ مِنَ اللَّيْلِ وَرَسُولُ اللَّهِ ﷺ عِنْدَ أُمِّ سَلَمَةَ وَكَانَتْ أُمُّ سَلَمَةَ مُحْسِنَةً فِي شَأْنِي مَعْنِيَّةً فِي أَمْرِي فَقَالَ رَسُولُ اللَّهِ ﷺ يَا أُمَّ سَلَمَةَ تِيبَ عَلَى كَعْبٍ قَالَتْ أَفَلاَ أُرْسِلُ إِلَيْهِ فَأُبَشِّرَهُ قَالَ إِذًا يَحْطِمَكُمُ النَّاسُ فَيَمْنَعُونَكُمُ النَّوْمَ سَائِرَ اللَّيْلَةِ حَتَّى إِذَا صَلَّى رَسُولُ اللَّهِ ﷺ صَلاَةَ الْفَجْرِ آذَنَ بِتَوْبَةِ اللَّهِ عَلَيْنَا وَكَانَ إِذَا اسْتَبْشَرَ اسْتَنَارَ وَجْهُهُ حَتَّى كَأَنَّهُ قِطْعَةٌ مِنَ الْقَمَرِ وَكُنَّا أَيُّهَا الثَّلاَثَةُ الَّذِينَ خُلِّفُوا عَنِ الأَمْرِ الَّذِي قُبِلَ مِنْ هَؤُلاَءِ الَّذِينَ اعْتَذَرُوا حِينَ أَنْزَلَ اللَّهُ لَنَا التَّوْبَةَ فَلَمَّا ذُكِرَ الَّذِينَ كَذَبُوا رَسُولَ اللَّهِ ﷺ مِنَ الْمُتَخَلِّفِينَ وَاعْتَذَرُوا بِالْبَاطِلِ ذُكِرُوا بِشَرِّ مَا ذُكِرَ بِهِ أَحَدٌ قَالَ اللَّهُ سُبْحَانَهُ {يَعْتَذِرُونَ إِلَيْكُمْ إِذَا رَجَعْتُمْ إِلَيْهِمْ قُلْ لاَ تَعْتَذِرُوا لَنْ نُؤْمِنَ لَكُمْ قَدْ نَبَّأَنَا اللَّهُ مِنْ أَخْبَارِكُمْ وَسَيَرَى اللَّهُ عَمَلَكُمْ وَرَسُولُهُ} الآيَةَ