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:7:129

They said, "We have been harmed before you came to us and after you have come to us." He said, "Perhaps your Lord will destroy your enemy and grant you succession in the land and see how you will do."  

They said, ‘We suffered harm before you came to us, and since you have come to us.’ He said, ‘Perhaps your Lord will destroy your enemy and make you successors in the land, that He may observe how you shall act’, in it.
القرآن:٧:١٢٩

قَالُوا أُوذِينَا مِنْ قَبْلِ أَنْ تَأْتِيَنَا وَمِنْ بَعْدِ مَا جِئْتَنَا ۚ قَالَ عَسَىٰ رَبُّكُمْ أَنْ يُهْلِكَ عَدُوَّكُمْ وَيَسْتَخْلِفَكُمْ فِي الْأَرْضِ فَيَنْظُرَ كَيْفَ تَعْمَلُونَ  

{قالوا أوذينا من قبل أن تأتينا ومن بعد ما جئتنا قال عسى ربُّكم أن يهلك عدوكم ويستخلفكم في الأرض فينظر كيف تعملون} فيها.