The name of the fairy tale is "Von dem Sommer- und Wintergarten".
Others of this type include Farmer Weathersky, The Sorcerer's Apprentice and Master and Pupil.
This tale type is well known in India and Europe and notably stable in form.
When he returned after a year, a dwarf advised him to bring bread, and that the little bird peeping from the basket he finds there is his son.
When the master-thief stables him, he asks the maid to take off the bridle, and she is so surprised that he talks that she does so.