These have been difficult days for Lt. Gov. Samuel W. Bogley III, errant son of the Maryland Democratic Party.

After unsuccessfully running on a primary ticket against his boss, Gov. Harry Hughes, and then supporting the Republicans, Bogley is about to be out of a job and heading whence he came--Bowie--with his future uncertain.

In just over a week, Bogley's four years in Annapolis will be over--bringing relief for many who watched with a mixture of dismay, delight and sometimes embarrassment as this former Prince George's County councilman, known then as "space cowboy" to his colleagues, uttered one unpolitic comment after another about Hughes, himself, his associates.

On Jan. 19, Hughes' new lieutenant governor, J. Joseph Curran Jr., for nearly 20 years a member of the state Senate and one of its respected committee chairman, will take the oath of office in a formal ceremony at the statehouse.

Sam Bogley will be nowhere in sight.

He wasn't invited.

For the last few weeks, with the help of a sole assistant, still faithful after four years, Bogley has been discarding files, dumping volumes not worth their weight on moving day, and painstakingly preserving the mementos of his term: yellow ballpoint pens that bear the inscription Samuel Bogley, Lt. Governor, State of Maryland; plaques commemorating his attendance at meetings Hughes passed up; jubiliant photographs of Bogley and Hughes before their estrangement.

"See anything you like?" Bogley quips to the few people bothering to observe his impending departure from office. "Everything here is 50 percent off. Talk about bargains."

Bogley says he has no regrets about his often tumultuous tenure--his anti-abortion stances which, almost from the beginning, alienated him from his pro-choice boss; his public agonizing over his inexperience; his regular statements about possibly switching political parties; his humiliation when Hughes, upon leaving town, failed, except once, to name him acting governor, an honor-duty frequently assigned to Bogley's predecessors by their governors.

"I'm aware I put a lot of obstacles in my path that I didn't have to," Bogley said. "I could've been intellectually dishonest. I could've. . . finessed it, gone through the motions and developed a rapport with the powers that be. But I couldn't have done that without betraying some people.

"If I had not done what my constituents (the prolife groups) expected of me, if I had gone along to get along I know I'd be here," he said.

But Sam Bogley is going home to be a lawyer, not his first or even his second choice. He wanted to return to Annapolis as the second-in-command to a different governor. Barring that, he wanted to practice municipal and county law for one of the blue-chip law firms in Baltimore, but none would have him. He blames his lack of success in Baltimore on his status as a political outcast.

Bogley says some law firms in Prince George's have offered to take him in but what he would really like at this point is to start his own firm with several like-minded lawyers interested in municipal law. Or to lobby in Annapolis for municipalities and counties--the one area of responsiblity he was given as lieutenant governor.

He admits it is an awesome feeling to be 41 years old and uncertain about how he will support his wife and seven children.

"Obviously when I look at the future now and the needs of my family I've got to say, 'Sam, are you going to be able to provide for them now as well as you have or could've if you'd entertained the governor's offer--excuse me, possible offer--to be a workman's compensation commissioner with a term of 12 years and a susbstantial salary ,' " he said.

Despite the worries, he is philosophical about leaving the statehouse and becoming just another private citizen for the first time since 1970. "I guess a Bogley comes to Annapolis every 20 years," he said, referring to his father's tenure as aide to the House speaker from 1959 to 1962.

He is also accepting of the final snub--not being invited by Hughes to next week's inaugural. "They opted not to have the former governor of the state of Maryland Marvin Mandel present in 1979 so if they don't want to have me present in 1983 that's up to them," he said. Of course, he admits that except for one brief hello when they passed in the statehouse, he and Hughes haven't spoken since the Nov. 2 election.

Bogley wrote a letter of congratulations to Hughes after the election but his aides refused to send it because of its biting tone. Bogley has been too embarrassed to write another since so much time has elapsed, but he sent Hughes a birthday card and a Christmas present.

On the other hand, Bogley said, he has heard nothing from Hughes.

As for his contribution to state government during the last four years, Bogley says, "I want to be viewed as a person who knew why he was selected, who attempted to be true and consistent in his beliefs and developed perhaps the best working releationship that local governments have enjoyed with the state."

Does he have any desire to have a official portrait of him hung in the statehouse?

"No, no official portrait," he said. "But you know there was no portrait of Christopher Cox either. He was the first lieutenant governor--during the Civil War. He was a man who stood up for his beliefs. Cox was a very strong abolitionist and the legislature, which was proslavery, abolished his job."

Bogley smiled at that, for legislators had suggested that his job be eliminated. Then he said, "Christopher Cox, my kind of guy."