Some dividing cells exit the cell cycle and enter vegetative inactive stage. This is called quiescent stage (G0). This process occurs at the end of :
G1 phase
S phase
G2 phase
M phase
Cells enter into G0 phase from the G1. This entry into G0 phase occur towards the end of G1 phase.