The NBA champion Golden State Warriors missed out on a White House visit for the second year in a row, meeting instead Thursday with former President Barack Obama rather than President Trump.

Pro sports teams are traditionally invited to the White House after winning championships, but Trump rescinded the offer to the Warriors in September 2017 after stars Stephen Curry and Kevin Durant made critical remarks. Curry and Durant said their team wasn't planning on visiting Trump anyway.

During their visit to Washington last year, the team instead toured the National Museum of African American History and Culture, accompanied by local schoolchildren.

An Instagram photo posted by the Warriors on Thursday, and later deleted, showed the team meeting with Obama before the team's 126-118 victory against the Washington Wizards in the nation's capital. The players spent about an hour with the former president.

“Whole gang with the 44th president of the United States today,” a caption read.

Stephen Curry said he had no idea where the idea came from. All-Star forward Kevin Durant said it was amazing, and forward Draymond Green called it a "good private team meeting."

Fox News and the Associated Press contributed to this report.