See how easily you cherry picked and left the context.
Read the two ayahs before this ayah:
يَـٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوٓا۟ أَطِيعُوا۟ ٱللَّهَ وَرَسُولَهُۥ وَلَا تَوَلَّوْا۟ عَنْهُ وَأَنتُمْ تَسْمَعُونَ
O you who have believed, obey Allāh and His Messenger and do not turn from him while you hear [his order].
وَلَا تَكُونُوا۟ كَٱلَّذِينَ قَالُوا۟ سَمِعْنَا وَهُمْ لَا يَسْمَعُونَ
And do not be like those who say, "We have heard," while they do not hear.
The ayah you quoted IN FACT applies to you for rejecting Messenger SAW. Bingo. Subhan Allah!!