Former President Barack Obama, wearing a Santa hat, paid a visit to students at the Boys and Girls Club of Greater Washington on Thursday.

Obama spent time with about 50 middle schoolers enrolled in an after-school program at the Jelleff Club in Northeast Washington.

The former president brought gifts and spoke with students and staff for about a half hour, according to the Washington Post.

"There's no better time than the holiday season to reach out and give back to our communities. Great to hear from young people at the Boys & Girls Club in DC today," he tweeted.

Since leaving office, he and former first lady Michelle Obama have continued to reside in D.C. while their younger daughter, Sasha, finishes high school. The Obamas have made other surprise visits to local schools and community centers.