You have the ace-high flush draw.
The flush comes, and it's the best possible hand on this board.
A nine pairs the board. Now a full house is possible, and a big bet from him should worry you.
Nines full of fours beat your flush. Your ace-high flush was the best hand until the river paired the board.