Which Shakespeare play features the characters Rosencrantz and Guildenstern? Explained

Which Shakespeare play features the characters Rosencrantz and Guildenstern? Explained

https://www.youtube.com/watch?v=aUjuWFQzZMY

The Shakespearean play that includes the figures Rosencrantz and Guildenstern is Hamlet. These two individuals are childhood companions of Prince Hamlet and are called to the Danish court with the task of observing Hamlet and discovering the reason behind his unusual conduct. Nevertheless, their function ultimately involves treachery, as they are used by the king to advance his plots against Hamlet. Despite their limited roles, Rosencrantz and Guildenstern have obtained cultural significance, particularly as the main characters in Tom Stoppard’s production Rosencrantz and Guildenstern Are Dead, which offers a reinterpretation of their narrative from their own viewpoint.