Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:17:7

˹And said˺, "If you do good, you do good for yourselves; and if you do evil, ˹you do it˺ to yourselves." Then when the final promise came, ˹We sent your enemies˺ to sadden your faces and to enter the temple in Jerusalem, as they entered it the first time, and to destroy what they had taken over with ˹total˺ destruction.  

And We said: ‘If you are virtuous, through ˹acts of˺ obedience, you are being virtuous to your own souls, since the reward thereof is for them ˹your souls˺; and if you do evil, by way of ˹working˺ corruption, it is for them’, your evildoing. So when the time, the occasion, for the other ˹prophecy˺ comes, We will raise them forth, that they might ravage you, make you grieve through ˹their˺ slaying and taking captive ˹of you˺, a grief that will be manifest on your faces, and that they might enter the Temple, the Holy House ˹of Jerusalem˺, and destroy it, just as they entered it, and destroyed it, the first time, and that they might destroy, lay waste, all that they conquered, ˹all that˺ they gained ascendancy over, utterly, with an utter wasting. They indeed wrought corruption a second time when they slew ˹the prophet˺ John. Thus Nebuchadnezzar was roused against them, and so he slew thousands of them and took their children captive and destroyed the Holy House ˹of Jerusalem˺.
القرآن:١٧:٧

إِنْ أَحْسَنْتُمْ أَحْسَنْتُمْ لِأَنْفُسِكُمْ ۖ وَإِنْ أَسَأْتُمْ فَلَهَا ۚ فَإِذَا جَاءَ وَعْدُ الْآخِرَةِ لِيَسُوءُوا وُجُوهَكُمْ وَلِيَدْخُلُوا الْمَسْجِدَ كَمَا دَخَلُوهُ أَوَّلَ مَرَّةٍ وَلِيُتَبِّرُوا مَا عَلَوْا تَتْبِيرًا  

وقلنا {إن أحسنتم} بالطاعة {أحسنتم لأنفسكم} لأن ثوابه لها {وإن أسأتم} بالفساد {فلها} إساءتكم {فإذا جاء وعد} المرة {الآخرة} بعثناهم {ليسوءوا وجوهكم} يحزنوكم بالقتل والسبي حزنا يظهر في وجوهكم {وليدخلوا المسجد} بيت المقدس فيخربوه {كما دخلوه} وخربوه {أول مرة وليتبروا} يهلكوا {ما علوْا} غلبوا عليه {تتبيرا} هلاكا وقد أفسدوا ثانيا بقتل يحيى فبعث عليهم بختنصر فقتل منهم ألوفا وسبى ذريتهم وخرب بيت المقدس.