Reflections of these verse from the chapter Fussilat
Sura Fussilat - 41:45
We gave Moses the Book, but differences were created concerning it: and had it not been for a word that had already gone forth from your Lord, the matter would have been decided between them; and certainly they are in grave doubt about it
https://uxquran.com/41/45
Sura Fussilat - 41:46
Whoever does what is just and right, does so for his own good; and whoever does evil, does so to his own detriment: and God is never in the least unjust to His creatures
https://uxquran.com/41/46