Does this sound right? “ I just wish I would’ve known that was going to be the last time I was going to hear his voice”? If it don’t please the grammar.
I don't see any grammar errors, however if you plan to put that in a book make sure it was from the character who said that as a narrator from the future, so telling a friend, or just having memories.