Since this often comes up in finals, here is Law 9.1 relating to Rolling the Pitch.

—-

LAW 9 PREPARATION AND MAINTENANCE OF THE PLAYING AREA

9.1 Rolling
The pitch shall not be rolled during the match except as permitted in 9.1.1 and 9.1.2.

9.1.1 Frequency and duration of rolling
During the match the pitch may be rolled at the request of the captain of the batting side, for a period of not more than 7 minutes, before the start of each innings, other than the first innings of the match, and before the start of each subsequent day’s play. See 9.1.4.

9.1.2 Rolling after a delayed start
In addition to the rolling permitted above, if, after the toss and before the first innings of the match, the start is delayed, the captain of the batting side may request that the pitch be rolled for not more than 7 minutes. However, if the umpires together agree that the delay has had no significant effect on the state of the pitch, they shall refuse such request for rolling of the pitch.

9.1.3 Choice of rollers
If there is more than one roller available the captain of the batting side shall choose which one is to be used.

9.1.4 Timing of permitted rolling
The rolling permitted (maximum 7 minutes) before play begins on any day shall be started not more than 30 minutes before the time scheduled or rescheduled for play to begin. The captain of the batting side may, however, delay the start of such rolling until not less than 10 minutes before the time scheduled or rescheduled for play to begin.

From the Laws of Cricket 2017 3rd ed (2022)