Matthew 24 "immediately AFTER the tribulation of those days... He will send forth His angels to gather His elect"
It is at the John 14:1-3 "second coming" where "I will come again and RECEIVE you to Myself that WHERE I am there you may be also".
Thus the "Dead in Christ rise FIRST" 1 Thess 4 at the "FIRST resurrection" Rev 20:4-5 that occurs at the second coming described in Matthew 24, and John 14:1-3 and Rev 19-20:5
One Bible detail that helps us keep all this straight is to remember that all Bible timelines are contiguous units themselves. So the 70 years of Jeremiah discussed by Daniel in Dan 9:1-6 are all "contiguous years" back-to-back. No inserting "gaps of undefined time length" into the middle of the contiguous 70 year timeline. All bible timelines work that way - including the 70 week (490 year) timeline.