وَإِن كَذَّبُوكَ فَقُل لِّى عَمَلِى وَلَكُمْ عَمَلُكُمْ ۖ أَنتُم بَرِيٓـُٔونَ مِمَّآ أَعْمَلُ وَأَنَا۠ بَرِىٓءٌۭ مِّمَّا تَعْمَلُونَ
And if they deny you, [O Muhammad], then say, "For me are my deeds, and for you are your deeds. You are disassociated from what I do, and I am disassociated from what you do."
If they reject you O Messenger, then you will be rewarded for what you do, and your actions are your responsibility; and that they will be repaid for what they do, and they will have to deal with the consequences of their actions. They will not be responsible for what happens to you, and you are free from what happens to them.