H1B approved - not joining the sponsoring company - effect on future H1B petition

Company xyz had sponsored a successful H1B petition. I changed my mind and will not join this company.

If a future employer applies for an H1B visa for me, will they know about my previous petition?

If the xyz company revoke my H1B visa, will that affect my chances for a H1B in the future?

Thank you in advance.

Future employer wouldn’t know by default. However, you can inform them as part of your previous immigration history disclosure. Knowing this would allow them to apply in cap-exempt category and not go through the lottery.

Even if XYZ revokes the petition, future employer can file cap-exempt petition for you.

Make sure you have a copy of the approval notice w/ you.