In the order confirmation page

If they checked out as a guest, give them a chance to create an account once they’re done paying. They might trust your store enough at that point and be interested in creating an account for future visits.

EXAMPLES