In the morning works better for me. I sit at a chair working from home most days and I work very early, so stretching in the morning best helps me from getting stiff and releasing some tension
I stretch in the morning because it helps me get ready. As silly as it sounds it helps me be more productive and readies me for the day. People stretch before a workout so think of it like the same but your workout is getting through the day and being productive.