The above position occurred in my recent game. It's not one I can be proud of because of a lot of errors. It was fun game though and had the above tactic to finish the game.
The moves were 1. e4 c6 { B10 Caro-Kann Defense } 2. f4 d5 3. e5 Bf5 4. Nf3 e6 5. d4 h5 6. Bd3 Nh6 7. O-O g6 8. c3 Be7 9. Be3 Nd7
I haven't castled yet but I like my position. My bishops are developed, my Knight on h6 guards the g4 and f5 squares. White cannot harass it because his pawn on f4 blocks his dark-squared Bishop. After castling, I can place my King on g7 safely with my dark-squared Bishop watching the h4-d8 diagonal. I can post my rooks on the queen-side and support the a and b pawn advance. At least, that was the plan. 10. b4 a5 11. bxa5 Rxa5 12. h3 Qa8
White gave me the initiative. I have pressure on the a-file. 13. a3 Bxa3
I won a pawn. If 13. Rf2 to protect the pawn. I planned on 13....b5 clamping on the queen-side. I'd castle next, move my rook to b8 and my Knight on b6. It should be a comfortable game for me. 14. Nxa3 Rxa3 15. Rxa3 Qxa3 16. Qc2 Bxd3 17. Qxd3 Nf5 18. Bc1 Qa2 19. c4 Qxc4
I'm two pawns up but the computer scores the game as drawish. This is due to my uncastled King and weakness on a3-f8 diagonal. White can continue with 20. Qa3 Qa6 21. Qxa6 bxa6 23. Ba3. My opponent missed this and continued with 20. Qxc4 dxc4 21. Ba3 b5 22. g4 hxg4 23. hxg4 Nh4
I was too excited to exchange pieces and played Nh4 immediately and I also realized it was a blunder the moment I released the mouse button. 24. Ng5 traps my Knight on h4. It would be difficult to make an escape without sacrificing some pawns. But my opponent missed it again. 24. Kf2
And now we reach the position above. It was an easy tactic to spot. White to move and win a piece.
The answer is 24....Nxf3 25. Kxf3 Rh3+ 26. Ke4 Rxa3 { White resigns. } 0-1
Game link - https://lichess.org/hYVVC47A/black