Al Qaeda’s branch in Somalia released a recruitment video on Friday that criticized racism and anti-Muslim sentiment in the United States and contained footage of the Republican presidential candidate Donald J. Trump announcing his proposal to bar Muslims from entering the country.

The video, released by the militant group Shabab, appeared to be the first time that Mr. Trump was featured in jihadist recruitment material. During a Democratic presidential debate last month, Hillary Clinton said that Mr. Trump had been used in a recruitment video for the Islamic State, a claim that was later debunked.

Al Qaeda and the Islamic State are rival jihadist groups that compete for recruits and money among radicalized Muslims.

Representatives for the Trump campaign did not respond to requests for comment on Friday.

The video was part of a series dedicated to Somali-American jihadists from Minnesota and one Canadian who died on the battlefield in Somalia. The video was authenticated by the SITE Intelligence Group, which studies jihadist propaganda, and it appeared to be aimed at the African-American community.