Like this:

 $ perl -anE 'if ($F[0] == 984) { last } else { print }' file
 982
 01:25:09,473 --> 01:25:10,978
 Stay with me.
 
 
 983
 01:25:09,473 --> 01:25:10,978
 Stay with me.

or

 $ perl -0777 -ne 'print $& if /.*(?=\n^984)/ms' file
 982
 01:25:09,473 --> 01:25:10,978
 Stay with me.
 
 
 983
 01:25:09,473 --> 01:25:10,978
 Stay with me.

#### The regular expression matches as follows:


| Regex | description |
| ------|------ |
| `.*` | Match 0 or more of any character |
| `(?=` | Positive lookahead assertion |
| `\n` | Match a newline character |
| `^` | Match the start of the string |
| `984)` | Match the 4 characters `984` |