The famous "curse" is not a sonnet but the epitaph on Shakespeare's grave in Holy Trinity Church, Stratford-upon-Avon:
Good friend, for Jesus' sake forbear,
To dig the dust enclosed here.
Blessed be the man that spares these stones,
And cursed be he that moves my bones.
Sonnet 116 ("Let me not to the marriage of true minds…") celebrates enduring love—it is not a curse. The epitaph has deterred exhumation for 400 years.