If, at the time of committing robbery or dacoity, the offender uses any deadly weapon, or causes grievous hurt to any person, or attempts to cause death or grievous hurt to any person, the imprisonment with which such offender shall be punished shall not be less than seven years.
CHAPTER XVII OF OFFENCES AGAINST PROPERTY · Of robbery and dacoity
Section 311: Robbery, or dacoity, with attempt to cause death or grievous hurt
The Bharatiya Nyaya Sanhita, 2023
Corresponding IPC provision
As given in the correspondence table of the National Crime Records Bureau (Ministry of Home Affairs). Read both texts before relying on it. NCRB table