It may or may not be worthwhile to point out there is no such teaching of "rebirth".
There is rather the teaching of "again birth".
As in "after death there is once again birth".
And we practice for the end of "birth".
It's maybe a subtle thing, or perhaps no thing at all, but people tend to get confused by the term "rebirth". The word tends to lead one to think there is some thing which is born again. "He died and then he was reborn again." The teachings rather speak in more impersonal terms...
"From clinging as a requisite condition comes becoming. From becoming as a requisite condition comes birth. From birth as a requisite condition, then old age and death, sorrow, lamentation, pain, distress, and despair come into play.
"From the cessation of clinging comes the cessation of becoming. From the cessation of becoming comes the cessation of birth. From the cessation of birth, then old age and death, sorrow, lamentation, pain, distress, and despair all cease."
— AN 10.92