Why is this a brilliant move?

I played this move thinking that I would pin queen to the king but after pawn takes, I have no way to take the pawn. Why is this a brilliant move, I thought it was a blunder

I played this move thinking that I would pin queen to the king but after pawn takes, I have no way to take the pawn. Why is this a brilliant move, I thought it was a blunder