In a next-hop static route the exit interface is determined based on the provided next hop IP address
Here are the commands to create three next-hop IPv4 static routes on R1 using the IP address of the next hop through R2
172.16.2.0/30
172.16.3.0/24
.2
.1
.1
172.16.1.0/24
192.168.1.0/24
192.168.2.0/24