[Machine] During the time of the Prophet Muhammad ﷺ , there were men among the hypocrites who would not join him when he went for battle. They would be happy to stay behind and go against the Prophet Muhammad's ﷺ orders. But when the Prophet Muhammad ﷺ returned, they would apologize to him, swear and pretend to have done things that they didn't do. Regarding them, the following was revealed in the Quran: "Do not think that those who rejoice in what they have done and love to be praised for what they have not done - do not think them unscathed from punishment." (Surah Al-Imran, 3:188)
أَنَّ رِجَالًا مِنَ الْمُنَافِقِينَ فِي عَهْدِ رَسُولِ اللهِ ﷺ كَانَ إِذَا خَرَجَ النَّبِيُّ ﷺ إِلَى الْغَزْوِ تَخَلَّفُوا عَنْهُ وَفَرِحُوا بِمَقْعَدِهِمْ خِلَافَ رَسُولِ اللهِ ﷺ فَإِذَا قَدِمَ رَسُولُ اللهِ ﷺ اعْتَذَرُوا إِلَيْهِ وَحَلَفُوا وَأَحَبُّوا أَنْ يُحْمَدُوا بِمَا لَمْ يَفْعَلُوا فَنَزَلَتْ فِيهِمْ {لَا تَحْسَبَنَّ الَّذِينَ يَفْرَحُونَ بِمَا أَتَوْا وَيُحِبُّونَ أَنْ يُحْمَدُوا بِمَا لَمْ يَفْعَلُوا فَلَا تَحْسَبَنَّهُمْ بِمَفَازَةٍ مِنَ الْعَذَابِ} [آل عمران 188]