This is episode 45 of 50 of The Boy Who Owns the Magic Lamp. Play it below, then continue straight into the next episode — the whole season is free and needs no account.
The closing stretch of the season, where the arc pays off.
After sorcerers kill his family, his mother leaves him a brass lamp, and Qasim grows up as a palace servant to Princess Laila. When Prince Jamal tries to seize the lamp and force her into marriage, Qasim summons the lamp's genie to gain power, defeating the tyrant king to become king and marry her.