57:23
لِّ كَيْلَا تَأْسَ وْا۟ عَلَىٰ مَا فَاتَ كُمْ وَ لَا تَفْرَحُ وا۟ بِ مَآ ءَاتَىٰ كُمْ وَ ٱللَّهُ لَا يُحِبُّ كُلَّ مُخْتَالٍ فَخُورٍ
In order that you not despair over what has eluded you and not exult [in pride] over what He has given you. And Allah does not like everyone self-deluded and boastful -
5:26
قَالَ فَ إِنَّ هَا مُحَرَّمَةٌ عَلَيْ هِمْ أَرْبَعِينَ سَنَةً يَتِيهُ ونَ فِى ٱلْ أَرْضِ فَ لَا تَأْسَ عَلَى ٱلْ قَوْمِ ٱلْ فَٰسِقِينَ
[Allah] said, "Then indeed, it is forbidden to them for forty years [in which] they will wander throughout the land. So do not grieve over the defiantly disobedient people."
5:68
قُلْ يَٰٓ أَهْلَ ٱلْ كِتَٰبِ لَسْ تُمْ عَلَىٰ شَىْءٍ حَتَّىٰ تُقِيمُ وا۟ ٱل تَّوْرَىٰةَ وَ ٱلْ إِنجِيلَ وَ مَآ أُنزِلَ إِلَيْ كُم مِّن رَّبِّ كُمْ وَ لَ يَزِيدَ نَّ كَثِيرًا مِّنْ هُم مَّآ أُنزِلَ إِلَيْ كَ مِن رَّبِّ كَ طُغْيَٰنًا وَ كُفْرًا فَ لَا تَأْسَ عَلَى ٱلْ قَوْمِ ٱلْ كَٰفِرِينَ
Say, "O People of the Scripture, you are [standing] on nothing until you uphold [the law of] the Torah, the Gospel, and what has been revealed to you from your Lord." And that which has been revealed to you from your Lord will surely increase many of them in transgression and disbelief. So do not grieve over the disbelieving people.
7:93
فَ تَوَلَّىٰ عَنْ هُمْ وَ قَالَ يَٰ قَوْمِ لَ قَدْ أَبْلَغْ تُ كُمْ رِسَٰلَٰتِ رَبِّ ى وَ نَصَحْ تُ لَ كُمْ فَ كَيْفَ ءَاسَىٰ عَلَىٰ قَوْمٍ كَٰفِرِينَ
And he turned away from them and said, "O my people, I had certainly conveyed to you the messages of my Lord and advised you, so how could I grieve for a disbelieving people?"