Correlation between gamma-ray bursts and gravitational waves