There is no verifiable public evidence that Samia Suluhu Hassan, Tanzania's president since March 2021, is a Freemason.
Freemasonry exists in Tanzania (Grand Lodge of Tanzania, chartered 2000 under UGLE), but membership is private. Many African countries have lodges—Ghana, Nigeria, Kenya, South Africa—with prominent members historically (Kwame Nkrumah, Jomo Kenyatta). But affiliation is a personal matter, not a matter of public record.
Unless President Hassan or her office makes a statement, the answer remains: unknown, with no evidence supporting the claim.