As a player sets up and disperses his playthings according to his own sweet will, so the supreme will of the Lord brings men together and separates them. (Srimad Bhagavatam 1.13.43)
…Generally the law of karma is that one is awarded the result of one’s own actions…A rich man gets his son born with a silver spoon in his mouth, but the child who came as the rich man’s son deserved such a place, and therefore he is placed there by the will of the Lord… but in special cases, by the will of the Lord, such resultant actions are changed also. But this change can be affected by the will of the Lord only, and no other. Therefore, the example of the player cited in this verse is quite appropriate, for the Supreme Will is absolutely free to do whatever He likes, and because He is all-perfect, there is no mistake in any of His actions or reactions. These changes of resultant actions are especially rendered by the Lord when a pure devotee is involved. (from purport)
Full Text and purport + reference verses More