I need a pen, and as it happens, I have one here.
as it happens
idiomBy coincidence, incidentally.
I was looking for a new apartment, and as it happens, my neighbor is moving out next month.
The professor mentioned a rare manuscript during the lecture, and as it happens, I had already spent the morning studying that very text in the library.