Yes, Bill Clinton in 1998 in relation to the Paula Jones lawsuit (I'd go into details, but that would violate the 20 year rule). Otherwise, no president has been held in contempt by a federal court.