https://www.legalbites.in/common-intention-to-rob/
P, Q, and R had a common intention to rob S. While P and Q entered into the house of S and beat and robbed him, R stood outside to warn P and Q of any danger. On being prosecuted along with P and Q, R pleaded that neither did he commit the robbery nor cause injuries to S and hence was not guilty of any offense.