Gen 45:8

45:8 it was not you . . . but God. Without excusing their sin, for which repentance was necessary (42:4 note), Joseph encourages the now contrite sinners to rejoice in God’s sovereign and gracious overruling of their evil intentions.