Drain won’t work that way. The pump that’s part of your washer probably can’t push it that far or at that height. Might try running down then up to your sink. Make sure you maintain an air gap. If you want to do it your way you will probably need some sort of booster pump.
In the words of Stringer Bell “Your not taking notes on a motherfucking conspiracy are you?”